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

Method _inside_op_range

tensorflow/python/tpu/tensor_tracer.py:393–399  ·  view source on GitHub ↗

Return True if the given index is inside the selected range.

(self, idx)

Source from the content-addressed store, hash-verified

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.

Callers 1

_skip_opMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected