diff --git a/onnxruntime/python/tools/quantization/calibrate.py b/onnxruntime/python/tools/quantization/calibrate.py index 971cc203f4d73..ef1ecd20a0d6f 100644 --- a/onnxruntime/python/tools/quantization/calibrate.py +++ b/onnxruntime/python/tools/quantization/calibrate.py @@ -368,7 +368,6 @@ def collect_data(self, data_reader: CalibrationDataReader): self.max_intermediate_outputs is not None and len(self.intermediate_outputs) == self.max_intermediate_outputs ): - self.compute_range() self.clear_collected_data() if len(self.intermediate_outputs) == 0 and self.calibrate_tensors_range is None: