| 96 | } |
| 97 | |
| 98 | std::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 | |
| 104 | std::ostream& operator<<(std::ostream& os, Symbol<Device> device) { |
| 105 | os << device->ToRepr(); |
no outgoing calls
no test coverage detected