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.cc64 DeviceNameUtils::ParsedName parsed_device; in ParseShardingFromDevice() local
65 if (!DeviceNameUtils::ParseFullName(device_name, &parsed_device)) { in ParseShardingFromDevice()
72 } else if (!parsed_device.has_type || !parsed_device.has_id || in ParseShardingFromDevice()
73 !absl::StrContains(parsed_device.type, in ParseShardingFromDevice()
77 const int core = parsed_device.id; in ParseShardingFromDevice()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dtpu_rewrite_device_util.cc547 Device parsed_device; in IsTPUDevice() local
549 &parsed_device)) in IsTPUDevice()
551 return parsed_device.has_type && parsed_device.type == kDeviceTPU; in IsTPUDevice()
555 Device parsed_device; in IsTPUReplicatedCore() local
557 &parsed_device)) in IsTPUReplicatedCore()
559 return parsed_device.has_type && parsed_device.type == kTPUReplicatedCore; in IsTPUReplicatedCore()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_dynamic_layout_pass.cc110 tensorflow::DeviceNameUtils::ParsedName parsed_device; in IsSupportedInputOp() local
112 &parsed_device)) { in IsSupportedInputOp()
115 return parsed_device.has_type && parsed_device.type == kDeviceCPU; in IsSupportedInputOp()
Dtpu_space_to_depth_pass.cc369 tensorflow::DeviceNameUtils::ParsedName parsed_device; in IsSupportedHostInputOp() local
371 &parsed_device)) { in IsSupportedHostInputOp()
374 return parsed_device.type == "CPU"; in IsSupportedHostInputOp()
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object_util.py64 parsed_device = pydev.DeviceSpec.from_string(device_string)
65 parsed_device = parsed_device.replace(device_type="CPU", device_index=0)
66 return parsed_device.to_string()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.cc87 DeviceNameUtils::ParsedName parsed_device; in TaskNameFromDeviceName() local
88 CHECK(DeviceNameUtils::ParseFullName(device_name, &parsed_device)); in TaskNameFromDeviceName()
90 CHECK(DeviceNameUtils::GetTaskName(parsed_device, &task_name)); in TaskNameFromDeviceName()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_functional_ops.cc2566 DeviceNameUtils::ParsedName parsed_device; in InstantiateFunctionsFromSubgraphs() local
2567 if (!DeviceNameUtils::ParseFullName(target, &parsed_device)) { in InstantiateFunctionsFromSubgraphs()
2571 device_ordinal = parsed_device.id; in InstantiateFunctionsFromSubgraphs()