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

Function _create_grad_func

tensorflow/python/ops/cond_v2.py:390–395  ·  view source on GitHub ↗

Returns the FuncGraph representation of _grad_fn.

(func_graph, grads, name)

Source from the content-addressed store, hash-verified

388
389
390def _create_grad_func(func_graph, grads, name):
391 """Returns the FuncGraph representation of _grad_fn."""
392 return func_graph_module.func_graph_from_py_func(
393 name,
394 lambda: _grad_fn(func_graph, grads), [], {},
395 func_graph=_CondGradFuncGraph(name, func_graph))
396
397
398def _resolve_grad_inputs(cond_graph, grad_graph):

Callers 2

_IfGradFunction · 0.70
_CaseGradFunction · 0.70

Calls 2

_CondGradFuncGraphClass · 0.85
_grad_fnFunction · 0.70

Tested by

no test coverage detected