- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for Tf_ConstOp (0.33 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.td
// Converts tf.Const to arith.constant for statically shaped, non-opaque constants. // Needed for QuantizationDriver to recognize constants. def ConvertTfConstToArithConst : Pat< (TF_ConstOp:$res DenseElementsAttr:$value), (Arith_ConstantOp $value),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.td
// Converts reamaining arith.constant ops from quantization passes back to // tf.Const ops. def ConvertArithConstToTfConst : Pat< (Arith_ConstantOp:$res DenseElementsAttr:$value), (TF_ConstOp $value),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
def : Pat<(TF_RiscAddOp $l, $r), (MHLO_AddOp $l, $r)>; def : Pat<(TF_RiscDotOp $a, $b, $transpose_a, $transpose_b), (MHLO_DotOp (TF_TransposeOp $a, (TF_ConstOp (Get2DTransposePerm $transpose_a))), (TF_TransposeOp $b, (TF_ConstOp (Get2DTransposePerm $transpose_b))), /*precision_config=*/(NullArrayAttr))>; //===----------------------------------------------------------------------===//
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 34.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
reduction_indices, keep_dims) .getOperation(); }); // mlir::TF::ConstOp py::class_<mlir::TF::ConstOp>(m, "Tf_ConstOp") .def("create", [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Attribute value) -> mlir::Operation* { return opb.create<mlir::TF::ConstOp>(loc, value).getOperation();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi
class Tf_AnyOp: def __init__(self, *args, **kwargs) -> None: ... def create(self, arg0: Location, arg1: Value, arg2: Value, arg3: bool) -> Operation: ... class Tf_ConstOp: def __init__(self, *args, **kwargs) -> None: ... def create(self, arg0: Location, arg1) -> Operation: ... class Tf_EqualOp: def __init__(self, *args, **kwargs) -> None: ...
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 09 17:10:09 UTC 2023 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
: NativeCodeCall<"$_builder.create<ConstOp>($_loc, $0.getType(), $1)">; def LegalizeTFConstToTFLConst: Pat<(TF_ConstOp:$res ElementsAttr:$value), (createConstOp $res, $value)>; // Convert to std constant for statically shaped, non-opaque constants. def ConvertTfConstToStdConst : Pat< (TF_ConstOp:$res DenseElementsAttr:$value), (Arith_ConstantOp $value), [(AnyStaticShapeTensor $res)], [], (addBenefit 10)>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
// (TF_SquaredDifferenceOp $x, $new_mean), // (TF_ConstOp [0,1,2])), // (TF_ConstOp $epsilon))))), // (TF_SubOp // $offset, // (TF_MulOp // (TF_MeanOp $x, (TF_ConstOp [0,1,2])), // $multiplier))), // // We already guaranteed that the last five results have no use so it does
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
(HasOneUse $input_neg_out)]>; // The constant folding in this pass might produce constant in the tf dialect. // This rule is to legalize these constant to the tfl dialect. def LegalizeConstOp : Pat< (TF_ConstOp ElementsAttr:$value), (TFL_ConstOp $value)>; // Reorders adds to allow constant folding. // Add --> Add $input, $constantA // \--> $constantB // To // Add --> $input
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
let hasVerifier = 1; let hasCanonicalizer = 1; } // In MLIR, the TensorFlow tensor value is represented as an ElementsAttr, with // its type encoding the tensor's shape and data type. def TF_ConstOp : TF_Op<"Const", [ConstantLike, Pure, DeclareOpInterfaceMethods<InferTypeOpInterface>, DeclareOpInterfaceMethods<OpAsmOpInterface, ["getAsmResultNames"]>]> { let summary = "Constant tensor op";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0)