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

Method GetLocalDeviceState

tensorflow/compiler/xla/python/local_client.cc:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101namespace xla {
102
103StatusOr<LocalDeviceState*> Device::GetLocalDeviceState() const {
104 if (local_device_state_) {
105 return local_device_state_.get();
106 }
107 return InvalidArgument("Device %s is not a local device.", DebugString());
108}
109
110std::string Device::DebugString() const {
111 return absl::StrCat(platform_name(), ":", id());

Callers 4

PYBIND11_MODULEFunction · 0.80
FromHostBufferMethod · 0.80
MakeTupleMethod · 0.80
CopyToDeviceMethod · 0.80

Calls 3

InvalidArgumentFunction · 0.85
DebugStringFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected