I am trying out different optimization methods in Kaggle notebook. I attempt to use Pytorch’s
OptimWrapper but get an error as followed:
get_learner function is defined in the chapter 16 of the fastai book:
def get_learner(**kwargs): return cnn_learner(dls, resnet34, pretrained=False, metrics=accuracy, **kwargs).to_fp16()
Did I do something wrong? Please help me, Thanks!