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 when reload pretrain data in pytorch version #55

Open
kevinGit777 opened this issue Feb 10, 2021 · 1 comment
Open

Runtime error when reload pretrain data in pytorch version #55

kevinGit777 opened this issue Feb 10, 2021 · 1 comment

Comments

@kevinGit777
Copy link

hi, I got a runtime error when executing>python repr_code.py --reload_from 4000000 after replacing all file in data/github, here is the detail:RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.cuda.IntTensor instead (while checking arguments for embedding)
image
Could you help me figure it out? Thank you so much!
Environment:
Python 3.8
torch 1.4

@guxd
Copy link
Owner

guxd commented Mar 19, 2021

You need to adapt your code to an older version of Python (3.6) and PyTorch (1.2).

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