parameters: ()
return_statement: return dict(zip(param_type_names, param_names))
docstring: Find out the correspondence between layer names and parameter names.
docstring_summary: Find out the correspondence between layer names and parameter names.
docstring_tokens: Find out the correspondence between layer names and parameter names .
function: def param_name_dict():
      """Find out the correspondence between layer names and parameter names."""
  
      layer = caffe_pb2.LayerParameter()
      # get all parameter names (typically underscore case) and corresponding
      # type names (typically camel case), which contain the layer names
      # (note that not all parameters correspond to layers, but we'll ignore that)
      param_names = [f.name for f in layer.DESCRIPTOR.fields if f.name.endswith('_param')]
      param_type_names = [type(getattr(layer, s)).__name__ for s in param_names]
      # strip the final '_param' or 'Parameter'
      param_names = [s[:-len('_param')] for s in param_names]
      param_type_names = [s[:-len('Parameter')] for s in param_type_names]
      return dict(zip(param_type_names, param_names))
function_tokens: def param_name_dict ( ) : layer = caffe_pb2 . LayerParameter ( ) # get all parameter names (typically underscore case) and corresponding # type names (typically camel case), which contain the layer names # (note that not all parameters correspond to layers, but we'll ignore that) param_names = [ f . name for f in layer . DESCRIPTOR . fields if f . name . endswith ( '_param' ) ] param_type_names = [ type ( getattr ( layer , s ) ) . __name__ for s in param_names ] # strip the final '_param' or 'Parameter' param_names = [ s [ : - len ( '_param' ) ] for s in param_names ] param_type_names = [ s [ : - len ( 'Parameter' ) ] for s in param_type_names ] return dict ( zip ( param_type_names , param_names ) )