MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SanitizedDeviceName

Method SanitizedDeviceName

tensorflow/core/grappler/costs/virtual_scheduler.cc:600–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600string 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
607string VirtualScheduler::ChannelDeviceName(const NodeDef* from,
608 const NodeDef* to) const {

Callers

nothing calls this directly

Calls 2

StringReplaceFunction · 0.50

Tested by

no test coverage detected