- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 91 for foo_attr (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
return Unimplemented("SetAttrFloat has not been implemented yet."); } Status MlirAbstractOp::SetAttrBool(const char* attr_name, bool value) { attrs_[attr_name] = BoolAttr::get(context_, value); return absl::OkStatus(); } Status MlirAbstractOp::SetAttrShape(const char* attr_name, const int64_t* dims, const int num_dims) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
// F32Attr already returns a float as required by flatbuffer builders. static float ConvertF32AttrForOptionWriter( llvm::APFloat f, flatbuffers::FlatBufferBuilder* builder) { return f.convertToFloat(); } // BoolAttr already returns a bool as required by flatbuffer builders. static bool ConvertBoolAttrForOptionWriter( bool b, flatbuffers::FlatBufferBuilder* builder) { return b; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
TF::TensorListLengthOp op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override { Location loc = op.getLoc(); Value input_handle = adaptor.getOperands()[0]; BoolAttr true_attr = rewriter.getBoolAttr(true); auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle, /*use_32bit=*/true_attr); rewriter.replaceOpWithNewOp<TF::GatherOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
}; TF::ReshapeOp createOutputReshapeOpForDynamic( Value value, ArrayRef<int64_t> shape, Value org_lhs, Value org_rhs, EinsumDimensionNumbers& dnums, Location loc, PatternRewriter* rewriter) { BoolAttr true_attr = rewriter->getBoolAttr(true); // Build ShapeOp auto shape_lhs = rewriter->create<TF::ShapeOp>(loc, org_lhs, true_attr); auto shape_rhs = rewriter->create<TF::ShapeOp>(loc, org_rhs, true_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
<body xmlns:foo="ns1" xmlns="ns2" xmlns:tag="ns3" ` + "\r\n\t" + ` > <hello lang="en">World <>'" 白鵬翔</hello> <query>&何; &is-it;</query> <goodbye /> <outer foo:attr="value" xmlns:tag="ns4"> <inner/> </outer> <tag:name> <![CDATA[Some text here.]]> </tag:name> </body><!-- missing final newline -->`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
const Attribute min, const Attribute max, const int quant_dim, const IntegerAttr num_bits, const BoolAttr narrow_range, const bool is_signed, const bool legacy_float_scale, const bool use_fake_quant_num_bits) { SmallVector<double, 4> min_value, max_value;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
result.attributes)) return failure(); } bool has_constant = succeeded(parser.parseOptionalKeyword("constant")); result.addAttribute("is_constant", BoolAttr::get(context, has_constant)); SmallVector<Type, 1> types; if (parser.parseColonTypeList(types)) return failure(); if (types.size() != 1) return parser.emitError(loc) << " expects only a single data type";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
return mlir::OpTrait::impl::verifyCompatibleOperandBroadcast( op.getOperation()); } void NotEqualOp::build(OpBuilder &builder, OperationState &result, Value x, Value y, BoolAttr incompatible_shape_error) { auto result_type = DeduceEqualCmpOpType(&builder, result.location, x, y, incompatible_shape_error);
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/ir/tfl_ops.cc
} // 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 = time_majored ? input_type.getDimSize(1) : input_type.getDimSize(0); int64_t time =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
auto composite_control_flow_op = [&](const std::string& name) { result.name = mlir::OperationName(get_full_op_name(name), context_); bool stateless = absl::StartsWith(node_type_name, "Stateless"); mlir::BoolAttr val = builder_.getBoolAttr(stateless); result.attributes.push_back(builder_.getNamedAttr("is_stateless", val)); }; // Map Case/If/While and StatelessCase/If/While op in TensorFlow to the common
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0)