Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for QuantizationConfig (0.35 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.h

    // Returns a copy of `user_provided_config` with default values populated where
    // the user did not explicitly specify.
    QuantizationConfig PopulateDefaults(
        const QuantizationConfig& user_provided_config);
    
    // Returns a copy of `QuantizationConfig` where presets are expanded and
    // transformed into other fields in `QuantizationConfig`.
    //
    // The expansion rules are as follows:
    // * StaticRangePtqPreset
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

      config.mutable_specs()->Swap(&new_specs);
    }
    
    }  // namespace
    
    QuantizationConfig ExpandPresets(const QuantizationConfig& config) {
      QuantizationConfig new_config = config;
    
      // Update the `new_config` with each preset's expansions.
      switch (config.preset_case()) {
        case QuantizationConfig::kStaticRangePtqPreset:
          ExpandStaticRangePtqPreset(config.static_range_ptq_preset(), new_config);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/python/quantization.py

        single representative dataset.
      """
      # Updates user-provided `QuantizationConfig`s for the internal quantization
      # pipeline to work with.
      print('=== User-provided QuantizationConfig ===')
      print(config)
      config = qc.QuantizationConfig.FromString(
          pywrap_quantization.populate_default_configs(config.SerializeToString())
      )
      config = qc.QuantizationConfig.FromString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 4.6K bytes
    - Viewed (1)
  4. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization_lib.cc

                                   py_function_library);
    }
    
    QuantizationConfig PywrapPopulateDefaults(
        const QuantizationConfig& user_provided_config) {
      return PopulateDefaults(user_provided_config);
    }
    
    QuantizationConfig PywrapExpandPresets(const QuantizationConfig& config) {
      return ExpandPresets(config);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 02:51:53 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.cc

    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::GetReportFilePath;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    using ::tensorflow::quantization::RunPasses;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_post_calibration_component.cc

      ModuleOp module_op = getOperation();
      MLIRContext& ctx = getContext();
    
      OpPassManager pm(ModuleOp::getOperationName());
    
      QuantizationConfig config = QuantizationConfig::default_instance();
      config.mutable_static_range_ptq_preset();
    
      const QuantizationConfig new_config = ExpandPresets(config);
    
      PipelineConfig pipeline_config;
      pipeline_config.set_unpack_quantized_types(unpack_quantized_types_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

    using ::mlir::quant::stablehlo::WeightOnlyPtqComponent;
    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::PopulateDefaults;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::PyFunctionLibrary;
    
    // Returns signature key -> `SignatureDef` mapping, excluding the signature for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.cc

    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    #include "tensorflow/core/protobuf/saver.pb.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    
    StaticRangePtqComponent::StaticRangePtqComponent(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration.cc

    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::quantization::RunPasses;
    
    PreCalibrationComponent::PreCalibrationComponent(
        absl::Nonnull<MLIRContext*> ctx)
        : ctx_(ABSL_DIE_IF_NULL(ctx)) {}  // Crash OK
    
    absl::StatusOr<ModuleOp> PreCalibrationComponent::Run(
        ModuleOp module_op, const QuantizationConfig& config) {
      TF_RETURN_IF_ERROR(RunPasses(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 09:28:53 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.cc

    using ::stablehlo::quantization::QuantizationConfig;
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tensorflow::quantization::RunPasses;
    
    PostCalibrationComponent::PostCalibrationComponent(
        absl::Nonnull<MLIRContext*> ctx)
        : ctx_(ABSL_DIE_IF_NULL(ctx)) {}  // Crash OK
    
    absl::StatusOr<ModuleOp> PostCalibrationComponent::Run(
        ModuleOp module_op, const QuantizationConfig& config) {
      TF_RETURN_IF_ERROR(RunPasses(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top