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

Function IsLoopConstantEnter

tensorflow/python/ops/control_flow_util.py:166–168  ·  view source on GitHub ↗

Return true iff op is a loop invariant.

(op)

Source from the content-addressed store, hash-verified

164
165
166def IsLoopConstantEnter(op):
167 """Return true iff op is a loop invariant."""
168 return IsLoopEnter(op) and op.get_attr("is_constant")
169
170
171def GetLoopConstantEnter(value):

Callers 1

GetLoopConstantEnterFunction · 0.85

Calls 2

IsLoopEnterFunction · 0.85
get_attrMethod · 0.45

Tested by

no test coverage detected