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

Method local_device_state

tensorflow/compiler/xla/python/local_client.h:60–62  ·  view source on GitHub ↗

If this is a device local to this host, returns a LocalDeviceState object that can be used to manipulate the device. Returns nullptr if the device is not local to this host.

Source from the content-addressed store, hash-verified

58 // that can be used to manipulate the device. Returns nullptr if the device is
59 // not local to this host.
60 LocalDeviceState* local_device_state() const {
61 return local_device_state_.get();
62 }
63
64 // If this is a device local to this host, returns a LocalDeviceState object
65 // that can be used to manipulate the device. Returns an error if the device

Callers 14

PYBIND11_MODULEFunction · 0.80
PyLocalClientMethod · 0.80
CopyToHostAsyncMethod · 0.80
CopyToDeviceMethod · 0.80
BlockHostUntilReadyMethod · 0.80
ExecuteHelperMethod · 0.80
ExecuteOnLocalDevicesMethod · 0.80
DLDeviceTypeForDeviceFunction · 0.80
DLContextForDeviceFunction · 0.80
DeviceForDLContextFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected