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

Method DeviceNameToDevicePath

tensorflow/core/debug/debug_node_key.cc:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46const string DebugNodeKey::DeviceNameToDevicePath(const string& device_name) {
47 return strings::StrCat(
48 kMetadataFilePrefix, kDeviceTag,
49 str_util::StringReplace(
50 str_util::StringReplace(device_name, ":", "_", true), "/", ",",
51 true));
52}
53
54} // namespace tensorflow

Callers

nothing calls this directly

Calls 2

StrCatFunction · 0.50
StringReplaceFunction · 0.50

Tested by

no test coverage detected