PaddleSlim icon indicating copy to clipboard operation
PaddleSlim copied to clipboard

AttributeError: module 'paddleslim' has no attribute 'models'

Open taoxunqiang opened this issue 1 year ago • 1 comments

安装信息如下:

paddlepaddle-gpu 2.6.0.post117 paddleslim 2.6.0

遇到的问题如下:

import paddleslim as slim

model = slim.models.MobileNet() Traceback (most recent call last): File "", line 1, in AttributeError: module 'paddleslim' has no attribute 'models'

taoxunqiang avatar Jan 31 '24 11:01 taoxunqiang

你好,最新的paddleslim版本已经没有 models文件夹了。 如果是为了跑通issue里跑的示例,可以安装2.4以前版本的paddleslim

ceci3 avatar Feb 06 '24 03:02 ceci3