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

Method GetNamesForDeviceMappings

tensorflow/core/util/device_name_utils.cc:544–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544std::vector<string> DeviceNameUtils::GetNamesForDeviceMappings(
545 const ParsedName& pn) {
546 if (pn.has_job && pn.has_replica && pn.has_task && pn.has_type && pn.has_id) {
547 return {
548 DeviceNameUtils::FullName(pn.job, pn.replica, pn.task, pn.type, pn.id),
549 LegacyName(pn.job, pn.replica, pn.task, pn.type, pn.id)};
550 } else {
551 return {};
552 }
553}
554
555std::vector<string> DeviceNameUtils::GetLocalNamesForDeviceMappings(
556 const ParsedName& pn) {

Callers

nothing calls this directly

Calls 1

LegacyNameFunction · 0.85

Tested by

no test coverage detected