Pytorch 0.3 upgrade needed

Think I’ve solved it. In models.py, in the fastai library, I changed lines 43 and 54. It seems self.crit expects y to be of type float. If you call float() on y, it runs just fine. It was right there, written in the error message!

Getting the same error. tried changing to self.crit(preds, float(y)) is that all or do i need change other things.