You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, the data.val_dl tensor is a LongTensor where learn.lr_find() expects a FloatTensor.
I was able to fix this by going to
courses/dl1/fastai/dataset.py
And adding:
y = y.astype(float)
At line 433.
I'm not sure that this is the best solution, and I don't know if it will negatively affect anything else because I'm new to the fastai library. I could just as easily have added
label_arr = label_arr.astype(float)
at line 153, I think.
I am running fastai using a docker image hosted in ubuntu 16.04. I can provide any other details you may need.
The text was updated successfully, but these errors were encountered:
Hi,
I get a tensor mismatch in lesson 2 when I try to run lrf=learn.lr_find()
Lesson two variable mismatch runtime error
Apparently, the data.val_dl tensor is a LongTensor where learn.lr_find() expects a FloatTensor.
I was able to fix this by going to
And adding:
At line 433.
I'm not sure that this is the best solution, and I don't know if it will negatively affect anything else because I'm new to the fastai library. I could just as easily have added
at line 153, I think.
I am running fastai using a docker image hosted in ubuntu 16.04. I can provide any other details you may need.
The text was updated successfully, but these errors were encountered: