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

Function decorated

tensorflow/python/eager/backprop.py:365–369  ·  view source on GitHub ↗

Computes the gradient of the decorated function.

(*args, **kwds)

Source from the content-addressed store, hash-verified

363 """
364
365 def decorated(*args, **kwds):
366 """Computes the gradient of the decorated function."""
367
368 _, grad = val_and_grad_function(f, params=params)(*args, **kwds)
369 return grad
370
371 return decorated
372

Callers

nothing calls this directly

Calls 12

val_and_grad_functionFunction · 0.85
make_vjpFunction · 0.85
vjpFunction · 0.85
_get_arg_specFunction · 0.70
fFunction · 0.50
popMethod · 0.45
appendMethod · 0.45
watchMethod · 0.45
formatMethod · 0.45
flattenMethod · 0.45
identityMethod · 0.45

Tested by

no test coverage detected