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

Method device_count

tensorflow/compiler/xla/service/backend.h:102–102  ·  view source on GitHub ↗

Returns the number of devices of the platform type which are visible. Not all of these devices may be usable by XLA.

Source from the content-addressed store, hash-verified

100 // Returns the number of devices of the platform type which are visible. Not
101 // all of these devices may be usable by XLA.
102 int device_count() const { return stream_executors_.size(); }
103
104 // Returns the device ordinal number of the default device.
105 int default_device_ordinal() const;

Callers 3

ServiceMethod · 0.45
ExecuteGraphParallelMethod · 0.45
GetDeviceHandlesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected