Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc63 DeviceNameUtils::ParsedName parsed_device; in ParseShardingFromDevice() local
64 if (!DeviceNameUtils::ParseFullName(device_name, &parsed_device)) { in ParseShardingFromDevice()
71 } else if (!parsed_device.has_type || !parsed_device.has_id || in ParseShardingFromDevice()
72 !absl::StrContains(parsed_device.type, in ParseShardingFromDevice()
76 const int core = parsed_device.id; in ParseShardingFromDevice()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_dynamic_layout_pass.cc127 tensorflow::DeviceNameUtils::ParsedName parsed_device; in IsSupportedInputOp() local
129 &parsed_device)) { in IsSupportedInputOp()
132 return parsed_device.has_type && parsed_device.type == kDeviceCPU; in IsSupportedInputOp()
Dtpu_space_to_depth_pass.cc414 tensorflow::DeviceNameUtils::ParsedName parsed_device; in IsSupportedHostInputOp() local
416 &parsed_device)) { in IsSupportedHostInputOp()
419 return parsed_device.type == "CPU"; in IsSupportedHostInputOp()
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object_util.py65 parsed_device = pydev.DeviceSpec.from_string(device_string)
66 parsed_device = parsed_device.replace(device_type="CPU", device_index=0)
67 return parsed_device.to_string()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dtpu_rewrite_device_util.cc545 Device parsed_device; in IsTPUDevice() local
547 &parsed_device)) in IsTPUDevice()
549 return parsed_device.has_type && parsed_device.type == kDeviceTPU; in IsTPUDevice()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.cc79 DeviceNameUtils::ParsedName parsed_device; in TaskNameFromDeviceName() local
80 CHECK(DeviceNameUtils::ParseFullName(device_name, &parsed_device)); in TaskNameFromDeviceName()
82 CHECK(DeviceNameUtils::GetTaskName(parsed_device, &task_name)); in TaskNameFromDeviceName()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Ddistributed_tpu_rewrite_pass.cc2805 DeviceNameUtils::ParsedName parsed_device; in CreateOrGetPerHostVariableCopy() local
2806 TF_RET_CHECK(DeviceNameUtils::ParseFullName(host_cpu_device, &parsed_device)); in CreateOrGetPerHostVariableCopy()
2807 TF_RET_CHECK(parsed_device.has_task); in CreateOrGetPerHostVariableCopy()
2808 VLOG(1) << "Creating per-host IdentityN node for task " << parsed_device.task; in CreateOrGetPerHostVariableCopy()
2846 if (parsed_device.task == 0 || !enable_xla_param_broadcast) { in CreateOrGetPerHostVariableCopy()
2869 absl::StrFormat("/dummy_%d", parsed_device.task)); in CreateOrGetPerHostVariableCopy()