(params_name)
return lambda model_fn: decorator(model_fn, params_name)
Decorator for registering a set of params.
Decorator for registering a set of params.
Decorator for registering a set of params .
def register(params_name):
  """Decorator for registering a set of params."""

  def decorator(decorator_params_fn, decorator_params_name):
    _registered_params[decorator_params_name] = decorator_params_fn
    return decorator_params_fn

  return lambda model_fn: decorator(model_fn, params_name)
def register ( params_name ) : def decorator ( decorator_params_fn , decorator_params_name ) : _registered_params [ decorator_params_name ] = decorator_params_fn return decorator_params_fn return lambda model_fn : decorator ( model_fn , params_name )