Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hist_freq (0.28 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

      EXPECT_EQ(statistics.value().histogram_statistics().bin_width(), 2.f);
      // Trailing zeros should be removed.
      EXPECT_THAT(statistics.value().histogram_statistics().hist_freq(),
                  ElementsAre(1, 0, 3, 5, 7, 6, 5));
    }
    
    TEST(HistogramStatisticsCollectorTest, AggregateSameBatchSize) {
      CalibrationOptions calib_opts;
      calib_opts.set_calibration_method(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

        hist_stats = statistics.histogram_statistics
        self._bin_width = hist_stats.bin_width
        self._lower_bound = hist_stats.lower_bound
        self._hist_freq = np.array(hist_stats.hist_freq)
        self._num_bins = len(self._hist_freq)
        self._num_bits = 8
        # i-th bin has a range [bins[i], bins[i + 1]).
        # bins[i] = lower_bound + i * bin_width
        # bins[i + 1] = lower_bound + (i + 1) * bin_width
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

      ASSERT_TRUE(stats.has_histogram_statistics());
      EXPECT_FLOAT_EQ(stats.histogram_statistics().bin_width(), 0.5f);
      EXPECT_FLOAT_EQ(stats.histogram_statistics().lower_bound(), 1.f);
      EXPECT_THAT(stats.histogram_statistics().hist_freq(),
                  ElementsAre(1, 4, 6, 7, 3, 2, 1));
    }
    
    TEST_F(CalibrationStatisticsSaverTest, MultipleStats) {
      std::vector<std::string> ids{"1", "2"};
      std::vector<int32_t> calibration_methods{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top