add prepare model as tuning input for IPEX.
@@ -2409,6 +2409,9 @@ class PyTorch_IPEXAdaptor(TemplateAdaptor): # pragma: no cover
ipex_conf.save(self.ipex_config_path)
if IPEX_112:
if self.approach == 'post_training_static_quant':
+ if hasattr(init_model,'save_qconf_summary'):
+ pass
+ else:
from torch.ao.quantization import MinMaxObserver, PerChannelMinMaxObserver, QConfig
static_qconfig = QConfig(activation=MinMaxObserver.with_args(
qscheme=torch.per_tensor_affine, dtype=torch.quint8),
