Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ IsInWhileLoop
Function
IsInWhileLoop
tensorflow/python/ops/control_flow_util.py:82–84 ·
view source on GitHub ↗
(op)
Source
from the content-addressed store, hash-verified
80
81
82
def
IsInWhileLoop(op):
83
ctxt = op._get_control_flow_context()
# pylint: disable=protected-access
84
return
GetContainingWhileContext(ctxt) is not None
85
86
87
def
IsInCond(op):
Callers
nothing calls this directly
Calls
2
GetContainingWhileContext
Function · 0.85
_get_control_flow_context
Method · 0.45
Tested by
no test coverage detected