Home
last modified time | relevance | path

Searched refs:kDeviceAttr (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_compile_op_replication_pass.cc31 constexpr char kDeviceAttr[] = "device"; variable
36 if (StringAttr device = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in GetHost()
73 new_compile_op->setAttr(kDeviceAttr, in runOnOperation()
79 new_assert_op->setAttr(kDeviceAttr, in runOnOperation()
80 new_compile_op->getAttr(kDeviceAttr)); in runOnOperation()
Dconstant_op_device_assignment.cc32 constexpr const char *kDeviceAttr = "device"; variable
45 if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in runOnOperation()
55 StringAttr device_attr = user_op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnOperation()
65 new_op->setAttr(kDeviceAttr, device_attr); in runOnOperation()
Dcluster_ops_by_policy_pass.cc45 constexpr char kDeviceAttr[] = "device"; variable
80 auto device = op->getAttr(kDeviceAttr); in IsOplistMatch()
97 if (curr_op->getAttr(kDeviceAttr) != device) return false; in IsOplistMatch()
146 if (auto device = lastOp->getAttr(kDeviceAttr)) in ClusterMatchedOps()
147 clusterOp->setAttr(kDeviceAttr, device); in ClusterMatchedOps()
Dlaunch_to_device_attribute.cc58 constexpr char kDeviceAttr[] = "device"; variable
72 auto device_attr = op->getAttr(kDeviceAttr); in AssignDevicesInRegion()
74 op->setAttr(kDeviceAttr, launch.deviceAttr()); in AssignDevicesInRegion()
80 op->setAttr(kDeviceAttr, launch.deviceAttr()); in AssignDevicesInRegion()
Dtensor_device_copy_conversion.cc35 constexpr const char *kDeviceAttr = "device"; variable
59 kDeviceAttr)) { in runOnFunction()
63 StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnFunction()
Dtpu_device_propagation.cc38 constexpr char kDeviceAttr[] = "device"; variable
63 auto lhs_device_attr = lhs->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedExecutorOp()
64 auto rhs_device_attr = rhs->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedExecutorOp()
175 auto device_attr = op_to_update->getAttrOfType<StringAttr>(kDeviceAttr); in PropagateDevicesInGraph()
194 op_to_update->setAttr(kDeviceAttr, new_device_attr); in PropagateDevicesInGraph()
201 source->setAttr(kDeviceAttr, new_device_attr); in PropagateDevicesInGraph()
Dtpu_cluster_cleanup_attributes.cc31 constexpr char kDeviceAttr[] = "device"; variable
41 for (StringRef attr : {kTPUReplicateAttr, kDeviceAttr}) in runOnOperation()
Dtf_device_replication_pass.cc30 constexpr char kDeviceAttr[] = "device"; variable
76 new_op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnOperation()
83 new_op->setAttr(kDeviceAttr, new_devices_array[i].cast<StringAttr>()); in runOnOperation()
Doutside_compiled_to_host_launch.cc30 constexpr char kDeviceAttr[] = "device"; variable
77 host_op->removeAttr(Identifier::get(kDeviceAttr, context)); in WrapOpInLaunch()
Dtpu_dynamic_layout_pass.cc51 constexpr char kDeviceAttr[] = "device"; variable
123 device = alias.getDefiningOp()->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedInputOp()
176 copy_with_layout->setAttr(kDeviceAttr, execute_launch.deviceAttr()); in HandleInput()
210 copy_with_layout->setAttr(kDeviceAttr, in HandleReplicatedInputs()
Dreplicate_invariant_op_hoisting.cc37 constexpr char kDeviceAttr[] = "device"; variable
122 StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr); in UsesVirtualDevice()
Dresource_device_inference.cc53 constexpr char kDeviceAttr[] = "device"; variable
137 auto device_attr = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr); in GetDeviceAttr()
195 identity->setAttr(kDeviceAttr, builder.getStringAttr(*device)); in ComputeResourceDevicesInComputation()
Dcluster_tf_ops_pass.cc46 constexpr const char *kDeviceAttr = "device"; variable
67 if (StringAttr attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in GetHost()
149 defining_op->getAttrOfType<StringAttr>(kDeviceAttr)) { in GetFunctionMetadatas()
Dreplicate_to_island.cc48 constexpr char kDeviceAttr[] = "device"; variable
125 kDeviceAttr, in UpdateRegionReplicateVariantOps()
Dtpu_variable_runtime_reformatting.cc60 constexpr char kDeviceAttr[] = "device"; variable
354 builder->getNamedAttr(kDeviceAttr, builder->getStringAttr(device)), in CreateStateVars()
Dtpu_extract_outside_compilation.cc50 constexpr char kDeviceAttr[] = "device"; variable
306 op.removeAttr(Identifier::get(kDeviceAttr, op.getContext())); in MoveOpsToHost()
Dtpu_cluster_formation.cc53 constexpr char kDeviceAttr[] = "device"; variable
276 inner_op->removeAttr(kDeviceAttr); in CreateClusterOp()
Dtpu_merge_variables_with_execute.cc55 constexpr char kDeviceAttr[] = "device"; variable
159 auto resource_attr = resource_op->getAttr(kDeviceAttr); in BuildVariableAccessInfo()
Dtpu_space_to_depth_pass.cc54 constexpr char kDeviceAttr[] = "device"; variable
412 auto device = op->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedHostInputOp()
Dtpu_rewrite_pass.cc70 constexpr char kDeviceAttr[] = "device"; variable
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_graphdef.cc80 constexpr char kDeviceAttr[] = "tf.device"; variable
239 func.getArgAttrOfType<mlir::StringAttr>(index, kDeviceAttr)) in GetArgumentNode()
244 absl::flat_hash_set<absl::string_view> attrs_to_ignore = {kDeviceAttr}; in GetArgumentNode()
274 function.getResultAttrOfType<mlir::StringAttr>(index, kDeviceAttr)) in GetReturnNode()
279 absl::flat_hash_set<absl::string_view> attrs_to_ignore = {kDeviceAttr}; in GetReturnNode()
690 kDeviceAttr, kResourceArgUniqueIdAttr}; in ConvertLibFunction()