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

RuntimeError: Expected tensor for argument #1 'input' to have the same device as tensor for argument #2 'weight'; but device 1 does not equal 0 (while checking arguments for cudnn_convolution) #196

Open
HongguLiu opened this issue Jun 12, 2020 · 2 comments

Comments

@HongguLiu
Copy link

Hello,
When I used multiple gpus to train model, I usually get this error. RuntimeError: Expected tensor for argument #1 'input' to have the same device as tensor for argument #2 'weight'; but device 1 does not equal 0 (while checking arguments for cudnn_convolution)
Could you tell me how to sole it.

best,
Honggu Liu

@AAA-Fan
Copy link

AAA-Fan commented Jun 23, 2020

Same issure. Did you fix it?

@surprisedong
Copy link

Specify a gpu device using 'CUDA_VISIBLE_DEVICES=0'

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