You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import paddle.fluid as fluid
Traceback (most recent call last):
File "", line 1, in
File "/home/actor/.local/lib/python3.5/site-packages/paddle/init.py", line 35, in
batch = batch.batch
NameError: name 'batch' is not defined
Activity
Aurelius84 commentedon Jul 20, 2020
请问您使用的paddle版本是哪个?
luoqishuai commentedon Aug 4, 2020
Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
LAC 2.0.4 ,paddlepaddle 1.8.3 ,centos 7,
请问该怎么解决呢?
@Aurelius84
luoqishuai commentedon Aug 4, 2020
已解决
该问题最开始是 linux 的lib包不对
https://blog.csdn.net/qq_24798295/article/details/90240666
在安装完一个包后 (如libSM.so.6)
再次在原有jupyter notebook的代码块中导入,会报NameError: name 'batch' is not defined.
关闭ipynb文件后,重新启动,导入,会报下一个包错误 如 (libXrender.so.1)
三个包全部安装完后,关闭ipynb文件后,重新启动,导入. 无异常.
paddle-bot-old commentedon Apr 12, 2021
Are you satisfied with the resolution of your issue?
YES
No
makaspacex commentedon Apr 22, 2021
这是我的解决办法