deep-code-search icon indicating copy to clipboard operation
deep-code-search copied to clipboard

Runtime error when reload pretrain data in pytorch version

Open kevinGit777 opened this issue 4 years ago • 1 comments

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

kevinGit777 avatar Feb 10 '21 03:02 kevinGit777

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

guxd avatar Mar 19 '21 12:03 guxd