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

Method _set_device

tensorflow/python/tpu/tpu.py:348–352  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

346 return self._device
347
348 def _set_device(self, device):
349 if isinstance(device, pydev.DeviceSpec):
350 self._device = device.to_string()
351 else:
352 self._device = device
353
354 def _set_device_from_string(self, device_str):
355 self._device = device_str

Callers 1

_set_op_deviceMethod · 0.45

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected