(layers, layer_name)
Find a layer by its name.

        Arguments:
            layers (dict): model configuration dictionary
            layer_name (str) name of the layer

        Returns:
            dict: Layer config dictionary
Find a layer by its name.
Find a layer by its name .
def find_by_name(layers, layer_name):
        """
        Find a layer by its name.

        Arguments:
            layers (dict): model configuration dictionary
            layer_name (str) name of the layer

        Returns:
            dict: Layer config dictionary
        """
        for l in layers['layers']:
            if 'name' in l['config'] and l['config']['name'] == layer_name:
                    return l
            if type(l) is dict and 'config' in l and 'layers' in l['config']:
                val = ModelDescription.find_by_name(l['config'], layer_name)
                if val is not None:
                    return val
def find_by_name ( layers , layer_name ) : for l in layers [ 'layers' ] : if 'name' in l [ 'config' ] and l [ 'config' ] [ 'name' ] == layer_name : return l if type ( l ) is dict and 'config' in l and 'layers' in l [ 'config' ] : val = ModelDescription . find_by_name ( l [ 'config' ] , layer_name ) if val is not None : return val