I am trying to figure out how to change the optimizer of the model from Adam to AdamW
We can pass in our optimizer when we build the learner using opt_func=optimizer
Example:
learn = create_cnn(data, models.resnet50, metrics=[accuracy], opt_func=optim.SGD)
but for AdamW how can I use it in fastai ?
Please help.