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

可以用CPU运行interact吗? #22

Closed
fancyerii opened this issue Aug 11, 2020 · 2 comments
Closed

可以用CPU运行interact吗? #22

fancyerii opened this issue Aug 11, 2020 · 2 comments

Comments

@fancyerii
Copy link

用gpu运行plato-2/scripts/24L_plato_interact.sh是可以的,但是我在没有gpu的机器上安装了cpu版本的paddlepaddle运行时出现问题:
E0811 21:28:37.228886 20545 pybind.cc:1277] Cannot use GPU because you have installed CPU version PaddlePaddle.
If you want to use GPU, please try to install GPU version PaddlePaddle by: pip install paddlepaddle-gpu
If you only have CPU, please change CUDAPlace(0) to be CPUPlace().

我已经尝试把所有的CUDAPlace(0)都替换成了CPUPlace(),请问还有哪不对吗?。
这是git diff的结果:

https://gist.github.com/fancyerii/fa04cea4e94cf9408c5d6091697fd9fa

@sserdoubleh
Copy link
Collaborator

可以用CPU进行interact
你还差一个地方没有改掉

place = fluid.CUDAPlace(gpu_id)

@fancyerii
Copy link
Author

可以了,谢谢!

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

2 participants