- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 63 for BoolAttr (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// destination type is not inferred and must be given explicitly. // // Preconditions: The given value must have a ShapedType. static Value CreateTFCastOpF32(OpBuilder *builder, Location loc, Value x, BoolAttr truncate) { auto x_type = mlir::dyn_cast_or_null<ShapedType>(x.getType()); if (!x_type) llvm_unreachable("unsupported type"); Type type = x_type.clone(builder->getF32Type());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
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/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) -
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/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/lite/transforms/optimize.cc
Value filter, Value bias, StringAttr fused_activation_function, StringAttr weights_format, BoolAttr keep_num_dims, BoolAttr asymmetric_quantize_inputs) { auto fc_op = builder->create<FullyConnectedOp>( result[0].getLoc(), result.getTypes(), input, filter, bias,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K 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)