Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

RuntimeError: The expanded size of the tensor (1) must match the existing size (128) #119

Open
caidwang opened this issue Nov 11, 2018 · 2 comments

Comments

@caidwang
Copy link

I pretend to run sh ./train_minitrs.sh --gpu 0 and get several problems.
All I have changed is to change device_id into device since I got a TypeError saying that TypeError: cuda() got an unexpected keyword argument 'device_id' before I get the RuntimeError lined in title.

My environment is:
Unbuntu 18.04
gcc 6.4
g++6.4
cuda 9.0.176
cudnn 7.1.2
pytorch 0.4.1

@VictorLeeLk
Copy link

Hi,I got the same question,have you solved it?

@caidwang
Copy link
Author

@VictorLeeLk Not yet, my peer changed pytorch to 0.2.0 with cuda8.0, and it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants