From deafdd3368a64551ea8b2d05f5efd4eece048c11 Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Mon, 22 Aug 2022 16:55:02 +0800 Subject: [PATCH] fix smac version (#1378) --- paddleslim/quant/post_quant_hpo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddleslim/quant/post_quant_hpo.py b/paddleslim/quant/post_quant_hpo.py index dc41e48d..455e723d 100755 --- a/paddleslim/quant/post_quant_hpo.py +++ b/paddleslim/quant/post_quant_hpo.py @@ -29,7 +29,6 @@ import shutil import glob from scipy.stats import wasserstein_distance -import pkg_resources as pkg from paddleslim.common import get_logger from paddleslim.quant import quant_post @@ -412,7 +411,7 @@ def quant_post_hpo( """ try: - pkg.require('smac') + os.system(' python -m pip install -U smac') except: from pip._internal import main main(['install', 'smac']) -- GitLab