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

Method ToRepr

oneflow/core/framework/device.cpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98std::string Device::ToRepr() const {
99 auto rematable_suffix = "";
100 if (rematable_) { rematable_suffix = ", rematable=True"; }
101 return fmt::format("device(type='{}', index={}{})", type_, device_id_, rematable_suffix);
102}
103
104std::ostream& operator<<(std::ostream& os, Symbol<Device> device) {
105 os << device->ToRepr();

Callers 3

device.cppFile · 0.80
operator()Method · 0.80
device.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected