未验证 提交 deafdd33 编写于 作者: G Guanghua Yu 提交者: GitHub

fix smac version (#1378)

上级 87000e2d
......@@ -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'])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册