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

Method IsCpu

tensorflow/compiler/jit/device_util.h:111–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 public:
110 bool IsGpu(DeviceId device) const { return is_gpu_[device.id()]; }
111 bool IsCpu(DeviceId device) const { return is_cpu_[device.id()]; }
112
113 absl::string_view GetNameFor(DeviceId device) const {
114 return names_[device.id()];

Callers 1

PickDeviceForXlaImplFunction · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected