Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for CalibrationOptions (0.65 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/config_test.cc

                  Eq(CalibrationOptions::CALIBRATION_METHOD_MIN_MAX));
    }
    
    TEST(PopulateDefaultsTest,
         DefaultCalibrationOptionsPopulatedForUnspecifiedMethod) {
      QuantizationConfig config{};
      CalibrationOptions& calibration_options =
          *config.mutable_calibration_options();
      calibration_options.set_calibration_method(
          CalibrationOptions::CALIBRATION_METHOD_UNSPECIFIED);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 06:59:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

                CalibrationOptions::CALIBRATION_METHOD_MIN_MAX);
            break;
          case TEST_CASE_AVERAGE_MIN_MAX:
            calib_opts_.set_calibration_method(
                CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX);
            break;
          case TEST_CASE_HISTOGRAM_PERCENTILE: {
            calib_opts_.set_calibration_method(
                CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_PERCENTILE);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py

                  calibration_method=_CalibrationMethod.CALIBRATION_METHOD_HISTOGRAM_MSE_MAX_FREQUENCY,
                  calibration_parameters=stablehlo_quant_config_pb2.CalibrationOptions.CalibrationParameters(),
              ),
          },
          {
              "testcase_name": "with_histogram_mse_symmetric",
              "calibration_options": stablehlo_quant_config_pb2.CalibrationOptions(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

      EXPECT_EQ(statistics.value().average_min_max_statistics().num_samples(), 1);
    }
    
    TEST(HistogramStatisticsCollectorTest, SingleBatchSimple) {
      CalibrationOptions calib_opts;
      calib_opts.set_calibration_method(
          CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_MAX_FREQUENCY);
      auto collector = CalibrationStatisticsCollectorHistogram();
    
      collector.Collect(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc

        switch (calibration_method) {
          case CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX:
            collector =
                std::make_unique<CalibrationStatisticsCollectorAverageMinMax>();
            break;
          case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_PERCENTILE:
          case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_BRUTEFORCE:
          case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_SYMMETRIC:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

            CalibrationOptions::CALIBRATION_METHOD_MIN_MAX);
      }
    
      switch (quant_config.calibration_options().calibration_method()) {
        case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_PERCENTILE:
        case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_BRUTEFORCE:
        case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_MAX_FREQUENCY:
        case CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_SYMMETRIC:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h

    inline bool IsHistogramCalibration(
        const CalibrationOptions::CalibrationMethod method) {
      return method ==
                 CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_PERCENTILE ||
             method ==
                 CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_BRUTEFORCE ||
             method == CalibrationOptions::
                           CALIBRATION_METHOD_HISTOGRAM_MSE_MAX_FREQUENCY ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    }
    
    TEST_F(CalibrationStatisticsSaverTest, MultipleStats) {
      std::vector<std::string> ids{"1", "2"};
      std::vector<int32_t> calibration_methods{
          CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX,
          CalibrationOptions::CALIBRATION_METHOD_HISTOGRAM_MSE_BRUTEFORCE};
    
      std::vector<NodeDefBuilder::NodeOut> inputs;
      inputs.emplace_back("min", 0, DT_FLOAT);
      inputs.emplace_back("max", 0, DT_FLOAT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/custom_aggregator_op.cc

    namespace {
    
    using ::stablehlo::quantization::CalculateBinIndexSafe;
    using ::stablehlo::quantization::CalculateBinWidth;
    using ::stablehlo::quantization::CalculateLowerBound;
    using ::stablehlo::quantization::CalibrationOptions;
    using CPUDevice = ::Eigen::ThreadPoolDevice;
    using CalibrationMethod =
        ::stablehlo::quantization::CalibrationOptions_CalibrationMethod;
    
    }  // namespace
    
    REGISTER_OP("CustomAggregator")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

          {
              'calibration_options': qc.CalibrationOptions(
                  calibration_method=_CalibrationMethod.CALIBRATION_METHOD_AVERAGE_MIN_MAX
              ),
          },
          {
              'calibration_options': qc.CalibrationOptions(
                  calibration_method=_CalibrationMethod.CALIBRATION_METHOD_HISTOGRAM_PERCENTILE,
                  calibration_parameters=qc.CalibrationOptions.CalibrationParameters(
    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