mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-23 02:38:28 +00:00
Fix a typo in quantization tools (#10940)
This commit is contained in:
parent
69e2d319ed
commit
ec00d28a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ class HistogramCollector(CalibrationDataCollector):
|
|||
cdf = np.cumsum(hist/total)
|
||||
if self.symmetric:
|
||||
idx_right = np.searchsorted(cdf, percentile / 100.0)
|
||||
thresholds_dict[tensor] = (-float(hist_edges[idx_ringht]), float(hist_edges[idx_right]))
|
||||
thresholds_dict[tensor] = (-float(hist_edges[idx_right]), float(hist_edges[idx_right]))
|
||||
else:
|
||||
percent_to_cut_one_side = (100.0 - percentile) / 200.0
|
||||
idx_right = np.searchsorted(cdf, 1.0 - percent_to_cut_one_side)
|
||||
|
|
|
|||
Loading…
Reference in a new issue