| 598 | } |
| 599 | |
| 600 | string VirtualScheduler::SanitizedDeviceName(const NodeDef* node) const { |
| 601 | // Replace the ":" characters that may be present in the device name with "_". |
| 602 | // This makes it possible to then use the resulting string in a node name. |
| 603 | return str_util::StringReplace(placer_->get_canonical_device_name(*node), ":", |
| 604 | "_", true); |
| 605 | } |
| 606 | |
| 607 | string VirtualScheduler::ChannelDeviceName(const NodeDef* from, |
| 608 | const NodeDef* to) const { |
nothing calls this directly
no test coverage detected