CNN_Text_Classification icon indicating copy to clipboard operation
CNN_Text_Classification copied to clipboard

RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.cuda.IntTensor instead (while checking arguments for embedding)

Open southjjh opened this issue 6 years ago • 0 comments

Thanks for your work!! I was trying to re-execute your code and found out the following issue. image And it returns an error message. image I think it has to do with the working environment(I'm using Windows 10). I post the link for your information (https://stackoverflow.com/questions/56360644/pytorch-runtimeerror-expected-tensor-for-argument-1-indices-to-have-scalar-t)

Any feedback or modifications will be very appreciated!!

southjjh avatar Apr 21 '20 06:04 southjjh