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

Method _use_tensor_buffer

tensorflow/python/tpu/tensor_tracer.py:488–491  ·  view source on GitHub ↗

Returns true if the whole tensor needs to be cached/buffered in memory.

(self)

Source from the content-addressed store, hash-verified

486 return self._parameters.use_compact_trace
487
488 def _use_tensor_buffer(self):
489 """Returns true if the whole tensor needs to be cached/buffered in memory."""
490 return (self._parameters.trace_mode ==
491 tensor_tracer_flags.TRACE_MODE_FULL_TENSOR_SUMMARY)
492
493 def _save_tensor_value_to_cache_op(self, cache_idx, updates):
494 """Returns an op that will save the given updates to an entry in the cache.

Callers 1

_trace_executionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected