- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ConstantAttr (0.18 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/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/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/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)