When I am trying to fit a model I am getting error : Expected object of type torch.cuda.LongTensor but found type torch.cuda.IntTensor

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’

Anyone please suggest how to fix this issue.

I am using fastai Version: 1.0.36.post1 and windows 10

Thanks,
Ritika

I have the same issue here when using Google Colab on lesson3-camvid.ipynb of Fastai Course v3. I am using fastai v1.0.40.

This issue was reported as fixed here- I don’t use Windows so can’t confirm: