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

Function internal_grad_fn

tensorflow/python/ops/custom_gradient.py:293–295  ·  view source on GitHub ↗

Custom grad fn wrapper.

(unused_op, *result_grads)

Source from the content-addressed store, hash-verified

291
292 @ops.RegisterGradient(name)
293 def internal_grad_fn(unused_op, *result_grads): # pylint: disable=unused-variable
294 """Custom grad fn wrapper."""
295 return tape_grad_fn(*result_grads)
296
297 original_tensors = all_tensors
298 with ops.get_default_graph().gradient_override_map({"IdentityN": name}):

Callers

nothing calls this directly

Calls 1

tape_grad_fnFunction · 0.85

Tested by

no test coverage detected