Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ IsSwitch
Function
IsSwitch
tensorflow/python/ops/control_flow_util.py:92–94 ·
view source on GitHub ↗
Return true if `op` is a Switch.
(op)
Source
from the content-addressed store, hash-verified
90
91
92
def
IsSwitch(op):
93
""
"Return true if `op` is a Switch."
""
94
return
op.type ==
"Switch"
or op.type ==
"RefSwitch"
95
96
97
def
IsMerge(op):
Callers
3
IsCondSwitch
Function · 0.70
IsLoopSwitch
Function · 0.70
CheckInputFromValidContext
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected