layer_index

Function layer_index 

Source
pub fn layer_index(name: &str) -> Option<usize>
Expand description

Extract the numeric layer index from a real tensor name (None for the canonicalised layers.N. form, which carries no index).