Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for QuantizationOptions (0.27 sec)

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

    using ::stablehlo::quantization::QuantizationOptions;
    
    // Returns QuantizationOptions filled with detailed specs when user specifies
    // an optional preset method name. The preset methods are defined in
    // quantization_options.proto. This function will only be executed if a user
    // gives a preset method, not a custom method.
    QuantizationOptions FillPresetQuantizationOptions(
        QuantizationOptions quantization_options);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 07:43:59 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.h

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

    namespace mlir::quant {
    namespace {
    
    using QuantizationOptions = tensorflow::quantization::QuantizationOptions;
    using QuantizationComponentSpec =
        tensorflow::quantization::QuantizationComponentSpec;
    
    TEST(TfOpQuantSpecTest, WeightComponentSpecExist) {
      QuantizationOptions quant_options;
      QuantizationComponentSpec quant_spec;
      quant_spec.set_quantization_component(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 18:28:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

    namespace py = pybind11;
    
    namespace {
    
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    using ::tensorflow::quantization::QuantizationOptions;
    using ::tensorflow::quantization::QuantizeDynamicRangePtq;
    using ::tensorflow::quantization::QuantizeQatModel;
    using ::tensorflow::quantization::QuantizeStaticRangePtq;
    using ::tensorflow::quantization::QuantizeWeightOnly;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.h

        const std::unordered_set<std::string>& tags,
        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

      spec->set_quantization_component(component);
      spec->set_bit_type(bit_type);
      spec->set_bit_width(bit_width);
    }
    
    ::stablehlo::quantization::QuantizationOptions FillPresetQuantizationOptions(
        ::stablehlo::quantization::QuantizationOptions quantization_options_) {
      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/tensorflow/python/integration_test/quantize_model_test.py

    # quantized results
    @test_util.run_all_in_graph_and_eager_modes
    class QuantizationOptionsTest(quantize_model_test_base.QuantizedModelTest):
      """Test cases regarding the use of QuantizationOptions proto.
    
      Run all tests cases in both the graph mode (default in TF1) and the eager mode
      (default in TF2) to ensure support for when TF2 is disabled.
      """
    
      class SimpleModel(module.Module):
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

          {asset_file_defs.begin(), asset_file_defs.end()});
    }
    
    absl::StatusOr<ExportedModel> ExportCalibrationModel(
        mlir::ModuleOp module_op, mlir::MLIRContext *context,
        const QuantizationOptions &quantization_options,
        const absl::flat_hash_map<std::string, std::string> &function_aliases,
        absl::string_view calibration_data_dir) {
      // Clone ModuleOp and function aliases so changes in this pipeline won't
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

    from tensorflow.python.util import tf_export
    
    # Type aliases for quant_opts_pb2 messages.
    _QuantizationOptions = tf_export.tf_export(
        'quantization.experimental.QuantizationOptions'
    )(quant_opts_pb2.QuantizationOptions)
    
    _QuantizationMethod = tf_export.tf_export(
        'quantization.experimental.QuantizationMethod'
    )(quant_opts_pb2.QuantizationMethod)
    
    _QuantizationComponentSpec = tf_export.tf_export(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/quantize_passes.cc

    namespace stablehlo {
    namespace quantization {
    
    void AddQuantizationPasses(mlir::PassManager& pass_manager,
                               const QuantizationOptions& quantization_options) {
      QuantizationOptions quantization_options_ = quantization_options;
      if (quantization_options.quantization_method()
              .has_preset_quantization_method()) {
        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)
Back to top