Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix optimizer
Browse files Browse the repository at this point in the history
Signed-off-by: changwangss <chang1.wang@intel.com>
  • Loading branch information
changwangss committed Jun 14, 2024
1 parent 806fa0b commit 75b13d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions intel_extension_for_transformers/transformers/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ def _inc_quantize(
provider: str = Provider.INC.value,
):
"""Do the quantization."""
if self.quantizer is None:
self.init_quantizer(quant_config=quant_config, provider=provider)
if self._eval_func is not None:
self.quantizer.eval_func = self._eval_func
if self._calib_func is not None:
Expand Down

0 comments on commit 75b13d1

Please sign in to comment.