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

Function _is_stateful_pfor_op

tensorflow/python/ops/parallel_for/pfor.py:90–99  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

88
89
90def _is_stateful_pfor_op(op):
91 if isinstance(op, WhileOp):
92 return op.is_stateful
93 if op.type == "Const":
94 # Const didn't have an op_def.
95 return False
96 if op.type in passthrough_stateful_ops:
97 return False
98 assert hasattr(op, "op_def") and op.op_def is not None, op
99 return op.op_def.is_stateful
100
101
102# pylint: disable=protected-access

Callers 3

__init__Method · 0.85
_maybe_stackedMethod · 0.85
_convert_helperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected