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

Function GetOutputContext

tensorflow/python/ops/control_flow_util.py:180–188  ·  view source on GitHub ↗

Return the control flow context for the output of an op.

(op)

Source from the content-addressed store, hash-verified

178
179
180def GetOutputContext(op):
181 """Return the control flow context for the output of an op."""
182 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
183 # Exit nodes usually have a control flow context, except in the case where the
184 # exit node was imported via import_graph_def (in which case no nodes have
185 # control flow contexts).
186 if ctxt is not None and IsLoopExit(op):
187 ctxt = ctxt.outer_context
188 return ctxt
189
190
191def GetContainingWhileContext(ctxt, stop_ctxt=None):

Callers 2

IsCondMergeFunction · 0.85

Calls 2

IsLoopExitFunction · 0.85

Tested by

no test coverage detected