parameters: (self, f)
return_statement: return f
docstring: Registers "f" as the shape function for "op_type".
docstring_summary: Registers "f" as the shape function for "op_type".
docstring_tokens: Registers f as the shape function for op_type .
function: def __call__(self, f):
      """Registers "f" as the shape function for "op_type"."""
      if f is None:
        # None is a special "weak" value that provides a default shape function,
        # and can be overridden by a non-None registration.
        try:
          _default_shape_function_registry.register(_no_shape_function,
                                                    self._op_type)
        except KeyError:
          # Ignore duplicate registrations of the weak value. This can
          # occur if the op library input to wrapper generation
          # inadvertently links in one or more of the standard op
          # libraries.
          pass
      else:
        _shape_registry.register(f, self._op_type)
      return f
function_tokens: def __call__ ( self , f ) : if f is None : # None is a special "weak" value that provides a default shape function, # and can be overridden by a non-None registration. try : _default_shape_function_registry . register ( _no_shape_function , self . _op_type ) except KeyError : # Ignore duplicate registrations of the weak value. This can # occur if the op library input to wrapper generation # inadvertently links in one or more of the standard op # libraries. pass else : _shape_registry . register ( f , self . _op_type ) return f