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

ValueError: device value error, must be str, #16

Open
IverYangg opened this issue Jun 13, 2022 · 6 comments
Open

ValueError: device value error, must be str, #16

IverYangg opened this issue Jun 13, 2022 · 6 comments

Comments

@IverYangg
Copy link

IverYangg commented Jun 13, 2022

请问一下,我只在仿真环境中跑了train.py, 按照readme的指导,但是报告了一个异常,
ValueError: device value error, must be str, paddle.CPUPlace(), paddle.CUDAPlace(), paddle.CUDAPinnedPlace() or paddle.XPUPlace(), but the type of device is device
我测试了一下,device=cuda, type(decvice) = <class 'torch.device'>, 一直找不到哪里的问题,可以帮忙看一下么?

@bld2013
Copy link

bld2013 commented Jun 13, 2022 via email

@PIKACHU-BOOM
Copy link

请问一下,我只在仿真环境中跑了train.py, 按照readme的指导,但是报告了一个异常, ValueError: device value error, must be str, paddle.CPUPlace(), paddle.CUDAPlace(), paddle.CUDAPinnedPlace() or paddle.XPUPlace(), but the type of device is device 我测试了一下,device=cuda, type(decvice) = <class 'torch.device'>, 一直找不到哪里的问题,可以帮忙看一下么?

请问这个问题你解决了吗,我也遇到了一样的问题

@bld2013
Copy link

bld2013 commented Jul 4, 2022 via email

@IverYangg
Copy link
Author

请问一下,我只在仿真环境中跑了train.py, 按照readme的指导,但是报告了一个异常, ValueError: device value error, must be str, paddle.CPUPlace(), paddle.CUDAPlace(), paddle.CUDAPinnedPlace() or paddle.XPUPlace(), but the type of device is device 我测试了一下,device=cuda, type(decvice) = <class 'torch.device'>, 一直找不到哪里的问题,可以帮忙看一下么?

请问这个问题你解决了吗,我也遇到了一样的问题

emm我没有找到解决办法,只在csdn上找到了一个相同问题的,他也没给给解决办法,博主一直没回我。

@PIKACHU-BOOM
Copy link

PIKACHU-BOOM commented Jul 4, 2022 via email

@bld2013
Copy link

bld2013 commented Oct 11, 2022 via email

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