MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / decorated

Function decorated

tensorflow/python/ops/custom_gradient.py:163–168  ·  view source on GitHub ↗

Decorated function with custom gradient.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

161 """
162
163 def decorated(*args, **kwargs):
164 """Decorated function with custom gradient."""
165 if context.executing_eagerly():
166 return _eager_mode_decorator(f, *args, **kwargs)
167 else:
168 return _graph_mode_decorator(f, *args, **kwargs)
169
170 return tf_decorator.make_decorator(f, decorated)
171

Callers

nothing calls this directly

Calls 3

_eager_mode_decoratorFunction · 0.85
_graph_mode_decoratorFunction · 0.85
executing_eagerlyMethod · 0.80

Tested by

no test coverage detected