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

Method device_index

tensorflow/python/framework/device_spec.py:404–406  ·  view source on GitHub ↗
(self, device_index)

Source from the content-addressed store, hash-verified

402
403 @DeviceSpecV2.device_index.setter
404 def device_index(self, device_index):
405 self._device_index = _as_int_or_none(device_index)
406 self._as_string, self._hash = None, None
407
408 def __hash__(self):
409 if self._hash is None:

Callers

nothing calls this directly

Calls 1

_as_int_or_noneFunction · 0.85

Tested by

no test coverage detected