PaddleSilm安装失败
Created by: CheungBH
您好,我按照 https://www.paddlepaddle.org.cn/documentation/docs/zh/1.3/beginners_guide/install/install_Ubuntu.html 的方法进行PaddleSilm的安装,发现会有ImportError。我的paddlepaddle版本是1.6.3
报错信息如下 root@hkuit164-GX501VIK:/opt/PaddleSlim# python setup.py install Traceback (most recent call last): File "setup.py", line 23, in from paddleslim.version import slim_version File "/opt/PaddleSlim/paddleslim/init.py", line 21, in from paddleslim import quant File "/opt/PaddleSlim/paddleslim/quant/init.py", line 15, in from .quanter import quant_aware, quant_post, convert File "/opt/PaddleSlim/paddleslim/quant/quanter.py", line 25, in from paddle.fluid.contrib.slim.quantization import PostTrainingQuantization ImportError: cannot import name PostTrainingQuantization
版本信息如下 root@hkuit164-GX501VIK:/opt/PaddleSlim# paddle --version /usr/local/bin/paddle: line 23: printf: post107: invalid number : invalid numberaddle: line 23: printf: PaddlePaddle 1.6.3.post107, compiled with with_avx: ON with_gpu: ON with_mkl: ON with_mkldnn: ON with_python: ON root@hkuit164-GX501VIK:/opt/PaddleSlim# python setup.py install Traceback (most recent call last): File "setup.py", line 23, in from paddleslim.version import slim_version File "/opt/PaddleSlim/paddleslim/init.py", line 21, in from paddleslim import quant File "/opt/PaddleSlim/paddleslim/quant/init.py", line 15, in from .quanter import quant_aware, quant_post, convert File "/opt/PaddleSlim/paddleslim/quant/quanter.py", line 25, in from paddle.fluid.contrib.slim.quantization import PostTrainingQuantization ImportError: cannot import name PostTrainingQuantization root@hkuit164-GX501VIK:/opt/PaddleSlim#