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

Method op_is_inside_loop

tensorflow/python/ops/parallel_for/pfor.py:247–253  ·  view source on GitHub ↗

True if op was created inside the pfor loop body.

(self, op)

Source from the content-addressed store, hash-verified

245 return self._is_inside_loop
246
247 def op_is_inside_loop(self, op):
248 """True if op was created inside the pfor loop body."""
249 assert isinstance(op, ops.Operation)
250 # Note that we use self._pfor_op_ids for the check and not self._pfor_ops
251 # since it appears there tensorflow API could return different python
252 # objects representing the same Operation node.
253 return op._id in self._pfor_op_ids
254
255 @property
256 def is_stateful(self):

Callers 2

__init__Method · 0.95
_maybe_stackedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected