Cadene / Cadene/pretrained-models.pytorch
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)
- Dominant language
- Python
- Stars
- 9.1k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported multi-GPU training failure and inspect device placement at the cudnn_convolution call. Done requires identifying the input/weight device mismatch and recording a reproducible resolution; the issue names no source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100