- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 190 for StringAttr (0.17 sec)
-
tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc
SmallVector<::mlir::NamedAttribute, 3> fields; auto padding_id = ::mlir::StringAttr::get(context, "padding"); fields.emplace_back(padding_id, StringAttr::get(context, padding)); auto pool_size_id = ::mlir::StringAttr::get(context, "pool_size"); fields.emplace_back(pool_size_id, pool_size); auto strides_id = ::mlir::StringAttr::get(context, "strides"); fields.emplace_back(strides_id, strides);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc
void ConstantOpDeviceAssignmentPass::runOnOperation() { ModuleOp module = getOperation(); module.walk([&](TF::ConstOp op) { // Keep the ConstOp if the op already have the device attribute. if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { return WalkResult::advance(); } OpBuilder builder(op); llvm::StringMap<mlir::Operation *> cloned_op_by_device; bool all_uses_replaced = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
// Parse node name from the `shared_name` attribute first. The variable v2 op // relies on the share name to look up from the TensorFlow's resource manager. StringAttr shared_name_attr = op->getAttrOfType<StringAttr>(kSharedNameAttr); if (shared_name_attr) { auto shared_name = StringRef(shared_name_attr.getValue()); if (!shared_name.empty()) { return shared_name; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/remove_sharding_custom_call.td
==============================================================================*/ include "stablehlo/dialect/StablehloOps.td" class IsStringAttrOf<string value> : Constraint< CPred<"::llvm::isa_and_nonnull<StringAttr>($_self) && $_self.cast<StringAttr>().getValue() == \"" # value # "\"">, "Is a string attribute whose value is \"" # value # "\"" >; // Removes `stablehlo.custom_call @Sharding`. Assumes this call always accepts
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 07:04:47 UTC 2024 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc
Builder builder(&getContext()); Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>(); getOperation().walk([&](Operation* op) { if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { // We assign default device to ops with device attribute that is empty. if (device_attr.getValue().empty()) { op->setAttr(kDeviceAttr, builder.getStringAttr(default_device_));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
func_op.setArgAttr(i, kTFDeviceAttr, StringAttr::get(context, metadata.input_devices[i])); } for (int i : llvm::seq<int>(0, metadata.result_devices.size())) { func_op.setResultAttr( i, kTFDeviceAttr, StringAttr::get(context, metadata.result_devices[i])); } func_op->setAttr(kHostAttr, StringAttr::get(context, host)); func_op.setPublic();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
const ArrayRef<Attribute> index_path_attrs = mlir::cast<ArrayAttr>(arg_attrs.get("tf_saved_model.index_path")) .getValue(); EXPECT_THAT(index_path_attrs, SizeIs(1)); StringAttr index_path = mlir::dyn_cast_or_null<StringAttr>(index_path_attrs[0]); EXPECT_THAT(index_path, NotNull()); EXPECT_THAT(index_path, Eq("arg_0:0")); } TEST_F(ConvertAssetArgsTest, NonBoundedArgsNotModified) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
!HasOutsideCompiledAncestor(input_defining_op) && !input_defining_op->hasAttrOfType<StringAttr>( kXlaOutsideCompilationAttr)) { input_defining_op->setAttr( kXlaOutsideCompilationAttr, StringAttr::get(input_defining_op->getContext(), "auto")); outside_compiled_ops.push(input_defining_op); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
attrs.push_back( NamedAttribute(StringAttr::get(context, "fused_ops"), fused_ops_attr)); // Epsilon is used only in fusions with the FusedBatchNorm op, so we zero it // here. Attribute epsilon = rewriter.getF32FloatAttr(0); attrs.push_back( NamedAttribute(StringAttr::get(context, "epsilon"), epsilon)); if (std::is_same<FusedOpT, _FusedConv2DOp>::value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
llvm::formatv(kBadArrayAttrLengthMsg, tensorflow::kInputShardingAttr, op.getNumOperands(), input_shardings.size())); // Set args metadata in proto. mlir::StringAttr replication_attr_name = mlir::StringAttr::get( op.getContext(), "mhlo.is_same_data_across_replicas"); auto dynamic_arg_idx = op->getAttrOfType<ArrayAttr>(TF::kDynamicArgIndexAttr); llvm::SmallSet<int, 4> dynamic_arg_idx_set;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0)