Home
last modified time | relevance | path

Searched refs:parsed_device (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc58 DeviceNameUtils::ParsedName parsed_device; in ParseShardingFromDevice() local
59 if (!DeviceNameUtils::ParseFullName(device_name, &parsed_device)) { in ParseShardingFromDevice()
66 } else if (!parsed_device.has_type || !parsed_device.has_id || in ParseShardingFromDevice()
67 !absl::StrContains(parsed_device.type, in ParseShardingFromDevice()
71 const int core = parsed_device.id; in ParseShardingFromDevice()
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object_util.py52 parsed_device = pydev.DeviceSpec.from_string(device_string)
53 parsed_device.device_type = "CPU"
54 parsed_device.device_index = 0
55 return parsed_device.to_string()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.cc110 DeviceNameUtils::ParsedName parsed_device; in CompleteGroupLocal() local
111 DeviceNameUtils::ParseFullName(device, &parsed_device); in CompleteGroupLocal()
112 string task_name = strings::StrCat("/job:", parsed_device.job, in CompleteGroupLocal()
113 "/replica:", parsed_device.replica, in CompleteGroupLocal()
114 "/task:", parsed_device.task); in CompleteGroupLocal()