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