MCPcopy 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
92def IsSwitch(op):
93 """Return true if `op` is a Switch."""
94 return op.type == "Switch" or op.type == "RefSwitch"
95
96
97def IsMerge(op):

Callers 3

IsCondSwitchFunction · 0.70
IsLoopSwitchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected