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

Method id

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

The ID of this device. IDs are unique among devices of this type (e.g. CPUs, GPUs). On multi-host platforms, this will be unique across all hosts' devices. This is the ID that should be used in a DeviceAssignment.

Source from the content-addressed store, hash-verified

53 // (e.g. CPUs, GPUs). On multi-host platforms, this will be unique across all
54 // hosts' devices. This is the ID that should be used in a DeviceAssignment.
55 int id() const { return id_; }
56
57 // If this is a device local to this host, returns a LocalDeviceState object
58 // that can be used to manipulate the device. Returns nullptr if the device is

Callers 15

QueueThreadMethod · 0.45
GetXfeedShapeFunction · 0.45
RunAndCompareFunction · 0.45
GetProgramShapeMethod · 0.45
BuildMethod · 0.45
BuildConstantSubGraphMethod · 0.45
AddCalledComputationMethod · 0.45
XlaComputationMethod · 0.45
GetXlaServiceMethod · 0.45
PYBIND11_MODULEFunction · 0.45

Calls

no outgoing calls

Tested by 1

_NewComputationMethod · 0.36