Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddslim在python3.11下无法使用 #1797

Open
JiaheZhi opened this issue Sep 25, 2023 · 2 comments
Open

paddslim在python3.11下无法使用 #1797

JiaheZhi opened this issue Sep 25, 2023 · 2 comments
Assignees

Comments

@JiaheZhi
Copy link

1.python3.11只支持pip install paddlepaddle==2.5.1
2.paddleslim最高版本是2.4.1
3.在上述情况下,使用 import paddleslim会出错,如下:

===============================================================================
发生异常: ImportError
cannot import name 'MSRA' from 'paddle.fluid.initializer' (/home/zhijh/miniconda3/envs/paddleslim311/lib/python3.11/site-packages/paddle/fluid/initializer.py)
File "/home/zhijh/Projects/PaddleSlim/quant.py", line 2, in
import paddleslim as slim
ImportError: cannot import name 'MSRA' from 'paddle.fluid.initializer' (/home/zhijh/miniconda3/envs/paddleslim311/lib/python3.11/site-packages/paddle/fluid/initializer.py)

@yrqs
Copy link

yrqs commented Sep 27, 2023

PaddlePaddle/Paddle#55765 (comment)

@minghaoBD
Copy link
Collaborator

请保证PaddleSlim版本和Paddle版本对齐。
例如,在您的paddle版本下,请参考上述评论,升级paddleslim。在PaddleSlim新版本中,已经遵循框架,脱离了对于fluid的依赖。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants