Skip to main content

layer_type_index

Function layer_type_index 

Source
pub fn layer_type_index(name: &str) -> Result<i32>
Expand description

Returns the registered type index of a layer type.

The index identifies the type in a model and is what Net::register_custom_layer_by_typeindex replaces. An unknown name returns Error::Invalid.