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:1132–1138  ·  view source on GitHub ↗

True if op was created inside the pfor loop body.

(self, op)

Source from the content-addressed store, hash-verified

1130 self._pfor_config = pfor_config
1131
1132 def op_is_inside_loop(self, op):
1133 """True if op was created inside the pfor loop body."""
1134 assert isinstance(op, ops.Operation)
1135 # Note that we use self._pfor_op_ids for the check and not self._pfor_ops
1136 # since it appears there tensorflow API could return different python
1137 # objects representing the same Operation node.
1138 return op._id in self._pfor_op_ids
1139
1140 def _convert_sparse(self, y):
1141 """Returns the converted value corresponding to SparseTensor y.

Callers 3

_convert_helperMethod · 0.95
_handle_inside_pforFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected