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

Function _Captures

tensorflow/python/ops/gradients_util.py:425–430  ·  view source on GitHub ↗
(func_graph)

Source from the content-addressed store, hash-verified

423
424
425def _Captures(func_graph):
426 if isinstance(func_graph, FuncGraph):
427 return func_graph.captures
428 else:
429 assert isinstance(func_graph, framework_function._FuncGraph) # pylint: disable=protected-access
430 return func_graph._captured.items() # pylint: disable=protected-access
431
432
433def _MaybeCaptured(t):

Callers 2

_MaybeCapturedFunction · 0.85
_ConsumersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected