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

Function IsLoopMerge

tensorflow/python/ops/control_flow_util.py:158–163  ·  view source on GitHub ↗

Return true if `op` is the Merge for a while loop.

(op)

Source from the content-addressed store, hash-verified

156
157
158def IsLoopMerge(op):
159 """Return true if `op` is the Merge for a while loop."""
160 if IsMerge(op):
161 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
162 return ctxt is not None and ctxt.IsWhileContext() and not IsCondMerge(op)
163 return False
164
165
166def IsLoopConstantEnter(op):

Callers

nothing calls this directly

Calls 4

IsCondMergeFunction · 0.85
IsMergeFunction · 0.70
IsWhileContextMethod · 0.45

Tested by

no test coverage detected