AttributeError: module ‘paddle.fluid.layers‘ has no attribute ‘interpolate‘

AttributeError: module ‘paddle.fluid.layers‘ has no attribute ‘interpolate‘,第1张

paddlepaddle-gpu-2.2.2版本太高了,许多模块在高版本没有了

解决办法:卸载原来的版本安装对应版本

卸载paddlepaddle-gpu-2.2.2,打开飞桨的终端,在里面执行下面的命令

python -m pip uninstall paddlepaddle-gpu

安装其它旧版本

python -m pip install paddlepaddle-gpu==1.8.4.post107 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html

安装其它版本只需要将命令里的1.8.4替换即可,post107也需要替换相对应的

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/742708.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-28
下一篇 2022-04-28

发表评论

登录后才能评论

评论列表(0条)

保存