When I am trying to fit a model I am getting below error
RuntimeError: Expected object of type torch.cuda.LongTensor but found type torch.cuda.IntTensor for argument #2 ‘target’
Thanks for the response @prajjwal1 . I am new to Pytorch. I am not able to understand where to make the changes.I am getting this error while fitting the model . Screenshot attached.
I think the issue is with different data type of targets and predictions when passed to nll_loss. as evident from screenshot. Try using %debug to figure out where the error is happening exactly. One figured, just change the tensor type to longTensor?