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
Thanks for raising this issue @dnth.
As you said the issue was due to the changes in the OptimWrapper. I've now updated it and it should work well.
I've verified it with this code:
In addition to that, I've decided to make a dependency on torch-optimizer. That's a library that contains most of the optimizers in Pytorch. You can now choose between many optimizers. All you need to do is:
opt_func = wrap_optimizer(torch.optim.AdamW) # if it's a Pytorch optimizer
opt_func = wrap_optimizer(optim.Shampoo) # if it's one of torch-optimizer's
I'll make a new pip release during the weekend to reflect these changes.
I'll close this issue based on this and your previous post. If needed, please, feel free to reopen.
I was toying around with the AdaBelief optimizer in tsai and found that it doesnt work with the notebook examples.
I think it is related to this issue
Specifically, the below code does not work
learn = ts_learner(dls, InceptionTime, metrics=[mae, rmse], cbs=ShowGraph(), opt_func=adabelief)
But, with a slight change it works again
Here is the notebook I worked on
https://colab.research.google.com/drive/1QVKrnGx8y5FCFkLp-va7BXIlOGKelvql?usp=sharing
The text was updated successfully, but these errors were encountered: