Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for calibration_options (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::CalibrationOptions;
    using ::stablehlo::quantization::DebuggerConfig;
    using ::stablehlo::quantization::PipelineConfig;
    using ::stablehlo::quantization::QuantizationSpecs;
    
    void AddPreCalibrationPasses(OpPassManager& pm,
                                 const CalibrationOptions& calibration_options,
                                 const QuantizationSpecs& quantization_specs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/quantization.py

      )
      print('=== Updated QuantizationConfig ===')
      print(config)
    
      if not (
          _has_quantization_method(config.specs, 'static_range_ptq')
          and len(config.calibration_options.representative_datasets) == 1
      ) and not _has_quantization_method(config.specs, 'weight_only_ptq'):
        raise ValueError(
            '`quantize_saved_model` currently only supports static-range PTQ with a'
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration.cc

        ModuleOp module_op, const QuantizationConfig& config) {
      TF_RETURN_IF_ERROR(RunPasses(
          kName, /*add_passes_func=*/
          [&config](PassManager& pm) {
            AddPreCalibrationPasses(pm, config.calibration_options(),
                                    config.specs(), config.debugger_config());
          },
          *ctx_, module_op));
      return module_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 09:28:53 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.h

    // Adds passes for static-range quantization pre-calibration. Inserts ops
    // required to collect tensor statistics.
    void AddPreCalibrationPasses(
        OpPassManager& pm,
        const ::stablehlo::quantization::CalibrationOptions& calibration_options,
        const ::stablehlo::quantization::QuantizationSpecs& specs,
        const ::stablehlo::quantization::DebuggerConfig& debugger_config);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

      TF_RETURN_IF_ERROR(
          RunCalibrationPasses(*cloned_module_ref, *context, calibration_data_dir,
                               quantization_options.calibration_options()
                                   .force_regenerate_calibration_data()));
      if (!IsCalibrationRequired(*cloned_module_ref)) return ExportedModel();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          default_calibration_options: stablehlo_quant_config_pb2.CalibrationOptions,
      ):
        quant_opts = quant_opts_pb2.QuantizationOptions(
            quantization_method=quant_opts_pb2.QuantizationMethod(
                preset_method=_PresetMethod.METHOD_STATIC_RANGE_INT8
            ),
            calibration_options=calibration_options,
        )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto

      // Defines calibration options for quantization. This option is only used for
      // activation of static range quantization (SRQ). Quantization calibration
      // method is set to MIN_MAX by default.
      CalibrationOptions calibration_options = 6;
    
      // Path to file to save the quantization report, which is essentially a
      // textproto rendering of `QuantizationResults`. If not set, the report will
      // only be emitted to stdout.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

            quantization_options.debugger_config().log_dir_path()));
      }
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::CreateInsertCustomAggregationOpsPass(
              quantization_options.calibration_options()));
    }
    
    void AddQuantizePtqPostCalibrationPasses(
        mlir::OpPassManager &pm, const QuantizationOptions &quantization_options,
        std::optional<const absl::string_view> mlir_dump_file_prefix) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.proto

      // activation of static range quantization (SRQ). Quantization calibration
      // method is set to MIN_MAX by default.
      stablehlo.quantization.CalibrationOptions calibration_options = 15;
    
      // Configuration related to quantization debugger.
      stablehlo.quantization.DebuggerConfig debugger_config = 16;
    
      reserved 3;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 06:31:19 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

        quantization_options: quant_opts_pb2.QuantizationOptions,
    ):
      """Populates default values for CalibrationOptions.
    
      Args:
        quantization_options: An instance of QuantizationOptions with a field
          specifying CalibrationOptions
      """
    
      calib_opts = quantization_options.calibration_options
      if (
          calib_opts.calibration_method
          == _CalibrationMethod.CALIBRATION_METHOD_UNSPECIFIED
      ):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top