MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / device_id

Method device_id

oneflow/api/cpp/framework/device.cpp:36–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34const std::string& Device::type() const { return (*device_)->type(); }
35
36int64_t Device::device_id() const { return (*device_)->device_id(); }
37
38bool Device::operator==(const Device& rhs) const { return *device_ == *rhs.device_; }
39bool Device::operator!=(const Device& rhs) const { return *device_ != *rhs.device_; }

Callers 7

device.cppFile · 0.45
remat.cppFile · 0.45
ToDLDeviceFunction · 0.45
deviceMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36