Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for QuantizationConfig (0.42 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization_lib.h

    // `::stablehlo::quantization::PopulateDefaults`.
    QuantizationConfig PywrapPopulateDefaults(
        const QuantizationConfig& user_provided_config);
    
    // Function used by the pywrap_quantization module to mirror
    // `::stablehlo::quantization::ExpandPresets`.
    QuantizationConfig PywrapExpandPresets(const QuantizationConfig& config);
    
    }  // namespace stablehlo::quantization::pywrap
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 13:51:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization.cc

      // LINT.IfChange(expand_preset_configs)
      m.def("expand_preset_configs", &PywrapExpandPresets, R"pbdoc(
            Expands presets to other fields in `QuantizationConfig`.
    
            Each preset is expressible by other fields in `QuantizationConfig`.
            Returns a copy of `QuantizationConfig` (serialized) where the fields are
            expanded from presets. If no preset has been set, it is a no-op and
            returns the same copy of the input.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 13:51:40 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization.pyi

    def populate_default_configs(
        user_provided_quantization_config_serialized: bytes,
    ) -> bytes: ...  # QuantizationConfig
    
    # LINT.ThenChange()
    
    # LINT.IfChange(expand_preset_configs)
    def expand_preset_configs(
        quantization_config_serialized: bytes,
    ) -> bytes: ...  # QuantizationConfig
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 13:51:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc

    #include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
    #include "tsl/platform/status_matchers.h"
    
    namespace tensorflow {
    namespace {
    
    using ::stablehlo::quantization::QuantizationConfig;
    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::testing::HasSubstr;
    using ::tsl::testing::IsOk;
    using ::tsl::testing::StatusIs;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top