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

Function grad_fn

tensorflow/contrib/layers/python/layers/rev_block_lib.py:628–629  ·  view source on GitHub ↗
(*output_grads, **kwargs)

Source from the content-addressed store, hash-verified

626 # created variables, the grad_fn should accept the "variables" kwarg.
627 if original_vars:
628 def grad_fn(*output_grads, **kwargs):
629 return _grad_fn(output_grads, kwargs["variables"])
630 else:
631 def grad_fn(*output_grads):
632 return _grad_fn(output_grads)

Callers 3

testGradientMethod · 0.50
CallGradFunctionFunction · 0.50
CallGradFunctionMethod · 0.50

Calls 1

_grad_fnFunction · 0.70

Tested by 2

testGradientMethod · 0.40
CallGradFunctionFunction · 0.40