- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for ConstantAttr (0.25 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td
(TFL_AveragePool2DOp /*input*/ (TFL_TransposeOp $a_input, (Arith_ConstantOp ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)), /*filter_height*/(GetI32At<0> (GetAsVectorAttr<"kernel_size"> $attrs)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
$x, (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">), TFL_AF_Relu6), (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "0.166666666f">), TFL_AF_None), TFL_AF_None), (TFL_HardSwishOp $x)>; def MatchHardSwishPattern3 : Pat< (TFL_MulOp (TFL_MulOp $x, (TFL_AddOp $x, (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">),
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/tfr/passes/decompose_patterns.td
def QuantActRangeNonePattern : Pattern< (TFR_TFRQuantActRangeOp (TFR_ConstOp HasStringAttr<"NONE">:$act), $scale, $zp), [(TFR_ConstantTensorOp (Arith_ConstantOp ConstantAttr<I32Attr, "-128">)), (TFR_ConstantTensorOp (Arith_ConstantOp ConstantAttr<I32Attr, "127">))]>; def QuantActRangeReluPattern : Pattern< (TFR_TFRQuantActRangeOp (TFR_ConstOp HasStringAttr<"RELU">:$act),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td
(Arith_ConstantOp ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)), (Arith_ConstantOp:$output_size (GetI32DenseAttr (GetAsVectorAttr<"output"> $attrs))), (GetCompositeAttributeAs<"align_corners", "BoolAttr"> $attrs), ConstBoolAttrTrue, (returnType (GetNhwcReturnTypeFromNchw $old_val))), (Arith_ConstantOp ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 3, 1, 2}">))>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
// Unary ops patterns. //===----------------------------------------------------------------------===// def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NHWC\"">; def IsDataFormatNCHW : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NCHW\"">; class I32VectorElementsAttr<int len> : ElementsAttrBase< CPred<"$_self.isa<DenseIntElementsAttr>() &&"
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_patterns.td
(Arith_ConstantOp ConstantAttr<I32ElementsAttr, "{0}">)), (TF_MatrixSetDiagOp $input, $diagonal)>; // `align` attribute can be ignored because we only support converting // `MatrixSetDiagV3` to `MatrixSetDiag` with default `k` inputs. def ConvertMatrixSetDiagV3ToMatrixSetDiag : Pat<(TF_MatrixSetDiagV3Op $input, $diagonal, (Arith_ConstantOp ConstantAttr<I32ElementsAttr, "{0}">),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/transform_patterns.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td" // Basically x - y => x + y * -1 def SubToAdd : Pat<(TFL_SubOp $lhs, $rhs, $act), (TFL_AddOp $lhs, (TFL_MulOp $rhs, (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "-1.0f">), TFL_AF_None), $act)>; // Squash tfl.dequantize and tfl.quantize pairs. // TODO(b/185915462): Compare the scale of input and output. This can also be
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
CPred<"$_self.isa<DenseElementsAttr>()">, "non-opaque constant tensor">; // Checks if the data format is "NHWC". def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NHWC\"">; // Checks if the data format is "NDHWC". def IsDataFormatNDHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NDHWC\"">; // Checks if the op is constant op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
//===----------------------------------------------------------------------===// class MHLO_ComparisonDirectionValue<string enumStr> : ConstantAttr<MHLO_ComparisonDirectionAttr, "::mlir::mhlo::ComparisonDirection::" # enumStr>; class CHLO_ComparisonDirectionValue<string enumStr> : ConstantAttr<CHLO_ComparisonDirectionAttr, "::mlir::chlo::ComparisonDirection::" # enumStr>; // TODO(b/228291745): Assert that $x and $y have the same shape.
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/tensorflow/transforms/optimize.td
include "mlir/IR/PatternBase.td" include "mlir/Dialect/Arith/IR/ArithOps.td" include "mlir/Dialect/Func/IR/FuncOps.td" include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td" def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NHWC\"">; // Get the last dimension size as a 1-d single element attr. def GetLastDimSizeAsI32 : NativeCodeCall<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 22 07:31:23 UTC 2023 - 5.4K bytes - Viewed (0)