Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for quantization_options (0.3 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.proto

    syntax = "proto3";
    
    package stablehlo.quantization;
    
    option cc_enable_arenas = true;
    
    // Defines arious options to specify and control the behavior of the
    // StableHLO quantizer.
    // NEXT ID: 2
    message QuantizationOptions {
      QuantizationMethod quantization_method = 1;
    }
    
    // NEXT ID: 3
    message QuantizationMethod {
      // Quantization Method can be either preset or custom.
      oneof quantization_method {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 22 02:20:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.proto

    // None, the default configuration is "do not quantize the model".
    // 2) A set of supported operations.
    // 3) Unit wise quantization precision.
    // 4) Target hardware name.
    // NEXT ID: 18
    message QuantizationOptions {
      // The default quantization configuration for the model. If the below
      // unit-wise configuration does not exist, we use this quantization
      // configuration for the entire model. For each method, default configuration
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 06:31:19 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.h

    void AddQuantizePtqDynamicRangePasses(
        mlir::OpPassManager &pm, const QuantizationOptions &quantization_options,
        std::optional<const absl::string_view> mlir_dump_file_prefix =
            std::nullopt);
    
    void AddQuantizeWeightOnlyPasses(
        mlir::OpPassManager &pm, const QuantizationOptions &quantization_options,
        std::optional<const absl::string_view> mlir_dump_file_prefix =
            std::nullopt);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 10:03:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/quantize_passes.cc

    #include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.pb.h"
    #include "tensorflow/compiler/mlir/quantization/stablehlo/utils/fill_quantization_options.h"
    
    namespace stablehlo {
    namespace quantization {
    
    void AddQuantizationPasses(mlir::PassManager& pass_manager,
                               const QuantizationOptions& quantization_options) {
      QuantizationOptions quantization_options_ = quantization_options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.h

        const QuantizationOptions& quantization_options);
    
    // Applies post-training dynamic-range quantization to the model.
    absl::StatusOr<ExportedModel> QuantizeDynamicRangePtq(
        absl::string_view saved_model_path,
        const std::vector<std::string>& signature_keys,
        const std::unordered_set<std::string>& tags,
        const QuantizationOptions& quantization_options);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 15:31:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top