pytorch-charRNN icon indicating copy to clipboard operation
pytorch-charRNN copied to clipboard

Runtime Error

Open kevaday opened this issue 6 years ago • 1 comments

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

kevaday avatar Sep 28 '18 23:09 kevaday

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

IvanSedykh avatar Oct 24 '19 20:10 IvanSedykh