| 107 | } |
| 108 | |
| 109 | std::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 | |
| 115 | Maybe<Symbol<Device>> Device::MakeDeviceByParallelDesc(const ParallelDesc& parallel_desc) { |
| 116 | const std::string& type = parallel_desc.device_tag(); |
no outgoing calls
no test coverage detected