/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | constant_op_device_assignment.cc | 46 if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in runOnOperation() local 56 StringAttr device_attr = user_op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnOperation() local 57 if (!device_attr) { in runOnOperation() 63 if (cloned_op_by_device.find(device_attr.getValue()) == in runOnOperation() 66 new_op->setAttr(kDeviceAttr, device_attr); in runOnOperation() 67 cloned_op_by_device[device_attr.getValue()] = new_op; in runOnOperation() 70 mlir::Operation *new_op = cloned_op_by_device[device_attr.getValue()]; in runOnOperation()
|
D | resource_device_inference.cc | 132 auto device_attr = in GetDeviceAttr() local 134 return device_attr ? device_attr.getValue() : ""; in GetDeviceAttr() 139 auto device_attr = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr); in GetDeviceAttr() local 140 return device_attr ? device_attr.getValue() : ""; in GetDeviceAttr() 156 StringRef device_attr = GetDeviceAttr(func_op, arg.getArgNumber()); in ComputeResourceDevicesInComputation() local 157 if (device_attr.empty()) { in ComputeResourceDevicesInComputation() 167 auto res = AddResourceDeviceAndEmitError(arg, device_attr, func_op, result); in ComputeResourceDevicesInComputation() 177 StringRef device_attr = GetDeviceAttr(op); in ComputeResourceDevicesInComputation() local 178 if (device_attr.empty()) return WalkResult::advance(); in ComputeResourceDevicesInComputation() 180 device_attr, op, result); in ComputeResourceDevicesInComputation()
|
D | tpu_device_propagation.cc | 178 auto device_attr = op_to_update->getAttrOfType<StringAttr>(kDeviceAttr); in PropagateDevicesInGraph() local 179 const bool has_device = device_attr && !device_attr.getValue().empty(); in PropagateDevicesInGraph() 180 if (has_device && tensorflow::IsTPUDevice(device_attr.getValue())) { in PropagateDevicesInGraph() 181 PopulateDeviceForOpResults(*op_to_update, device_attr.getValue(), in PropagateDevicesInGraph() 221 auto device_attr = func.getResultAttrOfType<StringAttr>( in PropagateDevicesToResults() local 223 if (device_attr && !device_attr.getValue().empty()) continue; in PropagateDevicesToResults()
|
D | tf_device_assignment.cc | 43 if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in runOnOperation() local 45 if (device_attr.getValue().empty()) { in runOnOperation() 80 if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in runOnOperation() local 82 if (device_attr.getValue().empty()) { in runOnOperation()
|
D | launch_to_device_attribute.cc | 45 auto device_attr = op->getAttr(kDeviceAttr); in AssignDevicesInRegion() local 46 if (!device_attr) { in AssignDevicesInRegion() 51 if (auto device_str_attr = device_attr.dyn_cast<StringAttr>()) { in AssignDevicesInRegion() 64 << "inner op has bad 'device' attribute, got " << device_attr; in AssignDevicesInRegion()
|
D | host_launch_to_outside_compiled.cc | 73 StringAttr device_attr = launch->getAttrOfType<StringAttr>(kDeviceAttr); in runOnOperation() local 74 if (host_device && device_attr && in runOnOperation() 75 device_attr.getValue().equals(*host_device)) in runOnOperation()
|
D | readonly_references_to_resources.cc | 153 StringAttr device_attr = in runOnOperation() local 155 if (!device_attr) device_attr = builder.getStringAttr(""); in runOnOperation() 168 builder.getNamedAttr("device", device_attr), in runOnOperation()
|
D | cluster_formation.cc | 56 auto device_attr = op->getAttrOfType<StringAttr>("device"); in GetDevice() local 57 return device_attr ? device_attr.getValue() : ""; in GetDevice()
|
D | tpu_merge_variables_with_execute.cc | 156 Attribute device_attr = execute_launch.deviceAttr(); in BuildVariableAccessInfo() local 157 if (check_device && !device_attr) return var_access_info; in BuildVariableAccessInfo() 188 if (!resource_attr || resource_attr != device_attr) continue; in BuildVariableAccessInfo() 196 if (!resource_attr || resource_attr != device_attr) continue; in BuildVariableAccessInfo()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/ |
D | tf_ops_device_helper.cc | 54 auto device_attr = op->getAttrOfType<StringAttr>("device"); in CanUseGpuDevice() local 55 if (!device_attr || device_attr.getValue().empty()) return true; in CanUseGpuDevice() 58 if (!DeviceNameUtils::ParseFullName(device_attr.getValue().str(), &device)) in CanUseGpuDevice()
|
D | tf_op_interfaces.cc | 22 if (auto device_attr = op->getAttrOfType<StringAttr>("device")) in GetDeviceOrEmpty() local 23 return device_attr.getValue(); in GetDeviceOrEmpty()
|
D | tf_device.cc | 482 for (auto device_attr : op.devices().getValue().getValue()) { in verify() local 483 auto device_list = device_attr.getValue().dyn_cast_or_null<ArrayAttr>(); in verify()
|
/external/tensorflow/tensorflow/core/distributed_runtime/integration_test/ |
D | c_api_multi_client_test.cc | 131 for (const auto& device_attr : device_attrs) { in TEST() local 132 device_names.push_back(device_attr.name()); in TEST() 178 for (const auto& device_attr : device_attrs) { in TEST() local 179 if (device_attr.name() == send_device) { in TEST() 180 send_device_incarnation = device_attr.incarnation(); in TEST()
|
D | c_api_multi_client_function_test.cc | 243 for (const auto& device_attr : device_attrs) { in TEST_P() local 244 if (device_attr.name() == send_device) { in TEST_P() 245 send_device_incarnation = device_attr.incarnation(); in TEST_P()
|
/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/ |
D | cross_device_transfer.cc | 78 if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in GetDevice() local 79 device = device_attr.getValue().str(); in GetDevice() 98 if (StringAttr device_attr = parent_func_op.getArgAttrOfType<StringAttr>( in GetDevice() local 100 device = device_attr.getValue().str(); in GetDevice()
|
D | fallback_converter.cc | 90 if (auto device_attr = def->getAttrOfType<mlir::StringAttr>("device")) { in ConvertFallbackTensorToCoreRTTensorHandle() local 96 if (!device_attr.getValue().endswith("TPU_SYSTEM:0")) { in ConvertFallbackTensorToCoreRTTensorHandle() 97 device = device_attr.getValue(); in ConvertFallbackTensorToCoreRTTensorHandle()
|
D | lower_saved_model.cc | 125 if (auto device_attr = in ReplaceHoistedValues() local 127 if (!device_attr.getValue().empty()) device = device_attr.getValue(); in ReplaceHoistedValues() 385 if (auto device_attr = new_op->getAttrOfType<mlir::StringAttr>("device")) { in HoistInvariantOps() local 386 if (!device_attr.getValue().empty()) device = device_attr.getValue(); in HoistInvariantOps() 651 if (auto device_attr = op->getAttrOfType<mlir::StringAttr>("device")) { in runOnOperation() local 652 device = device_attr.getValue(); in runOnOperation()
|
D | corert_converter.cc | 149 auto device_attr = op->getAttr("device"); in ParseDeviceName() local 150 if (!device_attr) { in ParseDeviceName() 155 ParseDeviceName(device_attr.cast<mlir::StringAttr>().getValue()); in ParseDeviceName()
|
/external/tensorflow/tensorflow/core/ir/ |
D | tf_op_wrapper.h | 132 StringAttr device_attr = deviceAttr(); in device() local 133 if (device_attr) return device_attr.getValue(); in device()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_session.cc | 395 for (const auto& device_attr : resp.local_device()) { in ListDevices() local 396 response->emplace_back(device_attr); in ListDevices() 398 for (const auto& device_attr : resp.remote_device()) { in ListDevices() local 399 response->emplace_back(device_attr); in ListDevices()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/transforms/ |
D | get_alternative_subgraph.cc | 290 auto device_attr = func->getAttrOfType<StringAttr>(kDevice); in runOnOperation() local 291 if (device_attr != nullptr) funcs_to_be_processed.push_back(func); in runOnOperation()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/ |
D | export_graphdef.cc | 218 if (auto device_attr = in GetArgumentNode() local 220 *node_def->mutable_device() = device_attr.getValue().str(); in GetArgumentNode() 253 if (auto device_attr = in GetReturnNode() local 255 *node_def->mutable_device() = device_attr.getValue().str(); in GetReturnNode()
|
/external/tensorflow/tensorflow/core/ir/importexport/ |
D | functiondef_import.cc | 162 StringAttr device_attr = tfgDialect->getDeviceAttrIdentifier(); in ImportNodes() local 190 state.addAttribute(device_attr, StringAttr::get(context, node.device())); in ImportNodes()
|
/external/tensorflow/tensorflow/core/runtime_fallback/runtime/ |
D | runtime_fallback_kernels.cc | 1078 RemainingArguments args, RemainingResults results, StringAttr device_attr, in RuntimeFallbackExecuteOp() argument 1096 std::string device_name = device_attr.GetValue().str(); in RuntimeFallbackExecuteOp()
|
/external/tensorflow/tensorflow/core/transforms/constant_folding/ |
D | pass.cc | 176 if (StringAttr device_attr = switch_op.deviceAttr()) in GetControlAnchorForSwitchResult() local 177 identity_op.setRequestedDevice(device_attr); in GetControlAnchorForSwitchResult() 732 StringAttr device_attr = TFOp(op).deviceAttr(); in matchAndRewrite() local 742 if (device_attr) (*const_op).setRequestedDevice(device_attr); in matchAndRewrite()
|