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

Method ToString

oneflow/core/framework/device.cpp:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::string Device::ToString() const {
110 auto rematable_suffix = "";
111 if (rematable_) { rematable_suffix = "+remat"; }
112 return fmt::format("{}:{}{}", type_, device_id_, rematable_suffix);
113}
114
115Maybe<Symbol<Device>> Device::MakeDeviceByParallelDesc(const ParallelDesc& parallel_desc) {
116 const std::string& type = parallel_desc.device_tag();

Callers 5

GetTensorMetaStringFunction · 0.45
InitShapAxis2ExpandedDimFunction · 0.45
NaiveInterpretFunction · 0.45
ApplyImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected