(self, trunk_layers, layer)
Given a layer name, find the insertion point in trunk_layers
Given a layer name, find the insertion point in trunk_layers
Given a layer name find the insertion point in trunk_layers
def find_insertion_index(self, trunk_layers, layer):
        """
        Given a layer name, find the insertion point in trunk_layers
        """
        trunk_names = [l[0].name if isinstance(l, list) else l.name for l in trunk_layers]
        if layer not in trunk_names:
            raise ValueError('{} from ssd_config not found in trunk layers'.format(layer))
        else:
            return trunk_names.index(layer) + 1
def find_insertion_index ( self , trunk_layers , layer ) : trunk_names = [ l [ 0 ] . name if isinstance ( l , list ) else l . name for l in trunk_layers ] if layer not in trunk_names : raise ValueError ( '{} from ssd_config not found in trunk layers' . format ( layer ) ) else : return trunk_names . index ( layer ) + 1