Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for tfl_quantizer (0.37 sec)

  1. tensorflow/compiler/mlir/lite/quantization/lite/tfl_quantizer.cc

    A. Unique TensorFlower <******@****.***> 1718231025 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/BUILD

            "@llvm-project//mlir:QuantOps",
            "@llvm-project//mlir:Support",
        ],
    )
    
    # Binary to apply quantization on the annotated files.
    tf_cc_binary(
        name = "tfl_quantizer",
        srcs = [
            "tfl_quantizer.cc",
        ],
        deps = [
            ":quantize_model",
            "//tensorflow/compiler/mlir/lite/schema:schema_fbs",
            "//tensorflow/lite:framework",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    // "qtype" attribute, we should update the type shape in this attribute.
    def ReorderTransposeDequantQuant :
          Pat<(TF_TransposeOp:$old_value
                  (TFL_DequantizeOp (TFL_QuantizeOp $input, $qtype)), $perm),
              (TFL_DequantizeOp (TFL_QuantizeOp
                                    (TF_TransposeOp $input, $perm),
                                    (UpdateShapeWithAxis<-1> $qtype, $old_value))),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/quantize_patterns.td

    // squashed to a requantize op if the scales are different.
    def : Pat<(TFL_QuantizeOp (TFL_DequantizeOp $in), $qt), (replaceWithValue $in)>;
    
    // If the tfl.dequantize op wasn't fused, we shouldn't quantize the floating
    // point constant.
    def : Pat<(TFL_DequantizeOp
                 (TFL_QuantizeOp (Arith_ConstantOp F32ElementsAttr:$cst), $qt)),
              (TFL_ConstOp $cst)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:10:13 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/post_quantize_patterns.td

    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    
    // Both Quantize and Dequantize ops have side effects, so we have to define
    // patterns to remove dead ones after the quantization rewrite.
    def : Pat<(TFL_QuantizeOp:$op $in, $qt), (replaceWithValue $in), [(HasNoUseOf:$op)]>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 16 23:20:46 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/transform_patterns.td

    // TODO(b/185915462): Compare the scale of input and output. This can also be
    // squashed to a requantize op if the scales are different.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

                                 (TFL_ExpandDimsOp $input, $dim)>;
    
    def LegalizeFakeQuantToDequantizeQuantize : Pat<
      (TF_FakeQuantWithMinMaxArgsOp $inputs, $min, $max, $num_bits, $narrow_range),
      (TFL_DequantizeOp
       (TFL_QuantizeOp $inputs,
                       (ConvertToQuantTypeFromAttrs $inputs, $min, $max,
                        $num_bits, $narrow_range)))>;
    
    def LegalizeFill : Pat<(TF_FillOp $arg, $value), (TFL_FillOp $arg, $value)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

      "8-bit quantized unsigned integer">;
    def TF_Quint16 : AnyTypeOf<
      [TF_TensorFlowType<"Quint16", "quint16">, TF_Quint16Ref],
      "16-bit quantized unsigned integer">;
    
    // Any quantized type
    def TF_Quantized : AnyTypeOf<
      [TF_Qint8, TF_Qint16, TF_Qint32, TF_Quint8, TF_Quint16], "quantized">;
    
    def TF_Qint8Tensor : TensorOf<[TF_Qint8]>;
    def TF_Qint16Tensor : TensorOf<[TF_Qint16]>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

    // incorrect placement in the quantization aware training.
    def MatchHardSwishQuantized : Pat<
      (TFL_MulOp (TFL_DequantizeOp (TFL_QuantizeOp
        (TFL_MulOp
         $x, (TFL_DequantizeOp (TFL_QuantizeOp (TFL_AddOp
              $x,
              (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">),
              TFL_AF_Relu6), $qattr2)),
         TFL_AF_None), $qattr1)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    // def UndoBroadcastFullyConnectedBiasAddWithQDQs : Pat<
    //   (TFL_AddOp $lhs,
    //     (TFL_DequantizeOp
    //       (TFL_QuantizeOp
    //         (Arith_ConstantOp:$const_op $bias),
    //       $qparams)),
    //   $act_fn),
    //   (TFL_AddOp $lhs,
    //     (TFL_DequantizeOp
    //       (TFL_QuantizeOp
    //         (Arith_ConstantOp:$const_op (FlattenTo1D $bias),
    //       $qparams)),
    //   $act_fn),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top