Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for QuantizationOptions (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    #include "xla/mlir_hlo/mhlo/transforms/passes.h"
    
    namespace tensorflow {
    namespace quantization {
    namespace {
    
    using ::tensorflow::quantization::QuantizationOptions;
    
    void AddConvertTpuToCpuModelPasses(mlir::OpPassManager &pm) {
      pm.addPass(mlir::quant::CreateConvertTpuModelToCpuPass());
      pm.addPass(mlir::createInlinerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. 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);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top