Lesson 4 - "Going deeper" - DLS failure

hi, DLS fails when I am trying to run this code

dls = ImageDataLoaders.from_folder(path, bs = 16, num_workers = 0)
learn = cnn_learner(dls, resnet18, pretrained=False,
loss_func=F.cross_entropy, metrics=accuracy)
learn.fit_one_cycle(1, 0.1)

Expected object of scalar type Long but got scalar type Int for argument #2 ‘target’ in call to _thnn_nll_loss_forward

how do I convert ‘target’ to Long??

Probably share your notebook for easier debugging

I am getting the same problem.Please do share if you find the solution