True if op was created inside the pfor loop body.
(self, op)
| 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. |
no outgoing calls
no test coverage detected