Return True if the given index is inside the selected range.
(self, idx)
| 391 | self._replica_id = 'unknown' |
| 392 | |
| 393 | def _inside_op_range(self, idx): |
| 394 | """Return True if the given index is inside the selected range.""" |
| 395 | |
| 396 | if idx < self._parameters.op_range[0]: |
| 397 | return False |
| 398 | return (self._parameters.op_range[1] < 0 or |
| 399 | idx <= self._parameters.op_range[1]) |
| 400 | |
| 401 | def _is_user_included_op(self, op): |
| 402 | """Checks whether the op is included in the tensor tracer flags. |