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

Method handle

tensorflow/python/distribute/values.py:856–863  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

854
855 @property
856 def handle(self):
857 # If we're in a tpu.rewrite(), return the replicated handle.
858 tpu_context = _enclosing_tpu_context()
859 if tpu_context is None:
860 return self._get_closest().handle
861 else:
862 return tpu_context.get_replicated_var_handle(
863 self._handle_id, self._values)
864
865 @property
866 def device(self):

Callers

nothing calls this directly

Calls 3

_get_closestMethod · 0.95
_enclosing_tpu_contextFunction · 0.70

Tested by

no test coverage detected