Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for calibration_methods (0.29 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h

    }
    
    // Gets the number of bins for the given calibration method.
    inline int32_t GetNumBins(const CalibrationOptions& calib_opts) {
      return IsHistogramCalibration(calib_opts.calibration_method())
                 ? calib_opts.calibration_parameters().num_bins()
                 : 0;
    }
    
    }  // namespace stablehlo::quantization
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/convert_custom_aggregation_op_to_quant_stats.mlir

      %0:4 = "tf.CustomAggregator"(%arg0) {min = -0.1 : f32, max = 0.2 : f32, id = "0", calibration_method = 1 : i32, num_bins = 0 : i32, max_percentile = 0.000000e+00 : f32, min_percentile = 0.000000e+00 : f32} : (tensor<8x8x8x8xf32>) -> (tensor<8x8x8x8xf32>, tensor<f32>, tensor<f32>, tensor<*xi64>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_custom_aggregation_ops.mlir

        %1 = "tf.Relu6"(%0) : (tensor<*xf32>) -> tensor<*xf32>
        func.return %1 : tensor<*xf32>
      }
    }
    
    // CalibrationOptions(calibration_method=CALIBRATION_METHOD_MIN_MAX)
    // MIN-MAX-CHECK: func @wrap_composite_func
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.mlir

        %0 = stablehlo.constant dense<1.000000e+03> : tensor<1024x3xf32>
        %1 = stablehlo.constant dense<1.000000e+03> : tensor<1x3xf32>
        %2:4 = "tf.CustomAggregator"(%arg0) {calibration_method = 1 : i32, id = "0", max_percentile = 0.000000e+00 : f32, min_percentile = 0.000000e+00 : f32, num_bins = 0 : i32} : (tensor<1x1024xf32>) -> (tensor<1x1024xf32>, tensor<f32>, tensor<f32>, tensor<*xi64>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/config_test.cc

    }
    
    TEST(PopulateDefaultsTest, DefaultCalibrationOptionsPopulated) {
      QuantizationConfig config{};
    
      const QuantizationConfig new_config = PopulateDefaults(config);
      EXPECT_THAT(new_config.calibration_options().calibration_method(),
                  Eq(CalibrationOptions::CALIBRATION_METHOD_MIN_MAX));
    }
    
    TEST(PopulateDefaultsTest,
         DefaultCalibrationOptionsPopulatedForUnspecifiedMethod) {
      QuantizationConfig config{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 06:59:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

      """
    
      calib_opts = quantization_options.calibration_options
      if (
          calib_opts.calibration_method
          == _CalibrationMethod.CALIBRATION_METHOD_UNSPECIFIED
      ):
        calib_opts.calibration_method = (
            _CalibrationMethod.CALIBRATION_METHOD_MIN_MAX
        )
      elif (
          calib_opts.calibration_method
          == _CalibrationMethod.CALIBRATION_METHOD_HISTOGRAM_PERCENTILE
      ):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/tests/components/pre_calibration_component.mlir

    // CHECK-DAG: %[[CST:.+]] = stablehlo.constant dense<1.000000e+00> : tensor<4x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/components/post_calibration_component.mlir

    // int ops.
    func.func @main(%arg0: tensor<1x1024xf32>) -> tensor<1x3xf32> {
      %0 = "tf.Const"() <{value = dense<0.5> : tensor<1024x3xf32>}> : () -> tensor<1024x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

      if (!quant_config.has_calibration_options() ||
          quant_config.calibration_options().calibration_method() ==
              CalibrationOptions::CALIBRATION_METHOD_UNSPECIFIED) {
        quant_config.mutable_calibration_options()->set_calibration_method(
            CalibrationOptions::CALIBRATION_METHOD_MIN_MAX);
      }
    
      switch (quant_config.calibration_options().calibration_method()) {
        case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_PERCENTILE:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

      """
    
      @parameterized.parameters(
          {
              'calibration_options': qc.CalibrationOptions(
                  calibration_method=_CalibrationMethod.CALIBRATION_METHOD_MIN_MAX
              )
          },
          {
              'calibration_options': qc.CalibrationOptions(
                  calibration_method=_CalibrationMethod.CALIBRATION_METHOD_AVERAGE_MIN_MAX
              ),
          },
          {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
Back to top