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

Runtime Error #2

Open
kevaday opened this issue Sep 28, 2018 · 1 comment
Open

Runtime Error #2

kevaday opened this issue Sep 28, 2018 · 1 comment

Comments

@kevaday
Copy link

kevaday commented Sep 28, 2018

Hi,
I have an issue with the program, and I cant't seem to figure out what it is.
I get the following error when running it with some params:
RuntimeError: Expected object of type torch.cuda.LongTensor but found type torch.cuda.IntTensor for argument #2 'target'
It would be awesome if someone could help me figure this one out,
Thanks

@IvanSedykh
Copy link

just put .long() for second argument in place where loss computed
idk but this worked

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