Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for quantization_options (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/utils/fill_quantization_options.cc

        default:
          break;
      }
      *quantization_options_.mutable_quantization_method()
           ->mutable_custom_quantization_method() = custom_method;
      return quantization_options_;
    }
    
    LogicalResult GetActivationBitWidth(QuantizationOptions quantization_options,
                                        int* bit_width) {
      CustomQuantizationMethod custom_method =
          quantization_options.quantization_method().custom_quantization_method();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/utils/fill_quantization_options.h

    QuantizationOptions FillPresetQuantizationOptions(
        QuantizationOptions quantization_options);
    
    // Returns LogicalResult depending on the look up of activation bit width in the
    // custom quantization method. If such information exists, returns success,
    // otherwise, returns false.
    LogicalResult GetActivationBitWidth(QuantizationOptions quantization_options,
                                        int* bit_width);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 07:43:59 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/tests/fill_quantization_options_test.cc

        const QuantizationComponentSpec expected_bias_component) {
      QuantizationOptions quantization_options;
      quantization_options.mutable_quantization_method()
          ->mutable_preset_quantization_method()
          ->set_preset_method(preset_quantization_options);
      QuantizationOptions filled_quantization_options =
          quant::stablehlo::FillPresetQuantizationOptions(quantization_options);
      for (QuantizationComponentSpec component :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py

            signature_keys=['serving_default'],
        )
    
        model = quantize_model.quantize(
            temp_path,
            quantization_options=quantization_options,
            representative_dataset=data_gen(),
        )
        return model
    
      @test_util.run_in_graph_and_eager_modes
      def test_multiple_conversion_jobs_with_calibration(self):
        # Ensure that multiple conversion jobs with calibration won't encounter any
        # concurrency issue.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/quantize_passes.h

    #include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.pb.h"
    
    namespace stablehlo {
    namespace quantization {
    // Adds passes for quantization of individual quantizable components.
    // (i.e. activation, weight, bias)
    void AddQuantizationPasses(mlir::PassManager& pass_manager,
                               const QuantizationOptions& quantization_options);
    
    }  // namespace quantization
    }  // namespace stablehlo
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 22 12:03:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.h

    // bf16 is quantizable.
    bool IsValueWithQuantizablePrecision(Value val);
    
    std::optional<tensorflow::quantization::QuantizationComponentSpec>
    GetWeightComponentSpec(
        const tensorflow::quantization::QuantizationOptions& quantization_options);
    
    // Returns the spec for the given operation that can be used for both of
    // dynamic and static range quantization.
    std::unique_ptr<OpQuantSpec> GetTFOpQuantSpec(Operation* op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

        return true;
      return false;
    }
    
    std::optional<tensorflow::quantization::QuantizationComponentSpec>
    GetWeightComponentSpec(
        const tensorflow::quantization::QuantizationOptions& quantization_options) {
      for (auto& cur_spec : quantization_options.quantization_method()
                                .quantization_component_specs()) {
        if (cur_spec.quantization_component() ==
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

          const int kWeightsMinNumElementsDefault = 1024;
    
          quantization::QuantizationOptions quantization_options;
    
          quantization_options.mutable_quantization_method()->set_preset_method(
              quantization::QuantizationMethod::METHOD_DYNAMIC_RANGE_INT8);
          quantization_options.set_op_set(quantization::UNIFORM_QUANTIZED);
          quantization_options.set_min_num_elements_for_weights(
              kWeightsMinNumElementsDefault);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec_test.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
    
    namespace mlir::quant {
    namespace {
    
    using QuantizationOptions = tensorflow::quantization::QuantizationOptions;
    using QuantizationComponentSpec =
        tensorflow::quantization::QuantizationComponentSpec;
    
    TEST(TfOpQuantSpecTest, WeightComponentSpecExist) {
      QuantizationOptions quant_options;
      QuantizationComponentSpec quant_spec;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 18:28:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

     public:
      explicit QuantizeConstWeights(
          MLIRContext* context,
          const tensorflow::quantization::QuantizationOptions& quantization_options)
          : OpRewritePattern<TF::ConstOp>(context),
            quant_options_(quantization_options) {}
    
      LogicalResult matchAndRewrite(TF::ConstOp op,
                                    PatternRewriter& rewriter) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top