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

Method get

tensorflow/python/distribute/values.py:832–837  ·  view source on GitHub ↗
(self, device=None)

Source from the content-addressed store, hash-verified

830 "'{}' not accessible within a TPU context.".format(name))
831
832 def get(self, device=None):
833 if (_enclosing_tpu_context() is None) or (device is not None):
834 return super(TPUVariableMixin, self).get(device=device)
835 else:
836 raise NotImplementedError(
837 "`TPUVariableMixin.get()` is not supported within a TPU context.")
838
839 def _get_as_operand(self):
840 return self.read_value()

Callers 15

replica_for_deviceMethod · 0.45
select_for_deviceMethod · 0.45
__getattr__Method · 0.45
_get_as_operandMethod · 0.45
_as_graph_elementMethod · 0.45
handleMethod · 0.45
opMethod · 0.45
read_valueMethod · 0.45
_assign_funcMethod · 0.45
_as_graph_elementMethod · 0.45
_dense_var_to_tensorMethod · 0.45
assign_subMethod · 0.45

Calls 1

_enclosing_tpu_contextFunction · 0.70

Tested by

no test coverage detected