def _get_layer_initializers(initializers, layer_name, fields):
 if (initializers is None):
  return None
 if (isinstance(initializers, dict) and (layer_name in initializers)):
  return _get_initializers(initializers[layer_name], fields)
 return _get_initializers(initializers, fields)

def _get_layer_initializers ( initializers , layer_name , fields ) : if ( initializers is None ) : return None if ( isinstance ( initializers , dict ) and ( layer_name in initializers ) ) : return _get_initializers ( initializers [ layer_name ] , fields ) return _get_initializers ( initializers , fields )
produces a nn initialization dictionary for a layer .