- Sort Score
- Result 10 results
- Languages All
Results 61 - 67 of 67 for NamedAttribute (0.26 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
if (!op.get_XlaSharding().has_value()) return failure(); NamedAttribute call_target_name = rewriter.getNamedAttr( "call_target_name", rewriter.getStringAttr("Sharding")); auto custom_call = rewriter.create<mhlo::CustomCallOp>( op.getLoc(), op.getType(), op.getInput(), ArrayRef<NamedAttribute>{call_target_name}); custom_call->setAttr(kShardingAttr, op.get_XlaShardingAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
concat_unary_operands.getResult(), op.getResult().getType(), ArrayRef<NamedAttribute>()); Operation* new_unary_op = rewriter.create(new_unary_op_state); CopyDeviceAndUnderscoredAttributes(op, new_unary_op); rewriter.replaceOp(op, new_unary_op->getResults()); return success();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
let hasRegionVerifier = 1; let builders = [ OpBuilder<(ins "TypeRange":$resultTypes, "ValueRange":$operands, "llvm::ArrayRef<::mlir::NamedAttribute>":$attributes, "unsigned":$numRegions), [{ assert(numRegions == 2u && "mismatched number of regions"); build($_builder, $_state, resultTypes, operands, attributes); }]>];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
ConversionPatternRewriter& rewriter) const final { if (op.getCallTargetName() != "ApproxTopK") { return mlir::failure(); } auto is_supported_attr_name = [](NamedAttribute attr) { auto name = attr.getName(); return name == "call_target_name" || name == "backend_config" || name == "api_version" || name == "called_computations"; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
OperationState new_unary_op_state(loc, first_user->getName().getStringRef(), op.getOperand(), op.getOperand().getType(), ArrayRef<NamedAttribute>()); Operation *new_unary_op = rewriter.create(new_unary_op_state); CopyDeviceAndUnderscoredAttributes(op, new_unary_op); // Unpack results after applying unary operation. auto unpack_unary_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
auto flex_builder = std::make_unique<flexbuffers::Builder>(); size_t map_start = flex_builder->StartMap(); auto attrs = vhlo_op->getAttrs(); std::vector<mlir::NamedAttribute> extra_attributes; for (size_t i = 0; i < attrs.size(); ++i) { auto name = attrs[i].getName().str(); auto attr = attrs[i].getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
input.getType().cast<ShapedType>().getElementType()); inferredReturnTypes.assign({result_type}); return success(); } // Default to non-time_major. std::optional<mlir::NamedAttribute> time_major_attr = attr.getNamed("time_major"); bool time_majored = time_major_attr ? time_major_attr->getValue().cast<BoolAttr>().getValue() : false; int64_t batch =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0)