Closed ivan-chai closed 2 years ago
That's interesting 👍
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
working :in-progress:
🐛 Bug Report
OptimizerCallback doesn't handle AMP correctly. Gradients need to be unscaled before clipping.
Original documentation is here:
https://pytorch.org/docs/stable/notes/amp_examples.html#gradient-clipping
Catalyst 21.09 code: