Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for tf_quantize_op (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h"
    
    #include <functional>
    #include <optional>
    
    #include "absl/strings/str_cat.h"
    #include "absl/strings/str_join.h"
    #include "absl/types/optional.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h

    A. Unique TensorFlower <******@****.***> 1711265865 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 07:44:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/ops/BUILD

            "@com_google_googletest//:gtest_main",
        ],
    )
    
    cc_library(
        name = "tf_quantize_op",
        srcs = [
            "tf_quantize_op.cc",
        ],
        hdrs = ["tf_quantize_op.h"],
        compatible_with = get_compatible_with_portable(),
        deps = [
            "//tensorflow/compiler/mlir/quantization/common/quantization_lib",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 07:44:40 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op_test.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h"
    
    #include <optional>
    
    #include <gtest/gtest.h>
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/Dialect/Quant/QuantOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

    #include "mlir/Transforms/GreedyPatternRewriteDriver.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  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