Setting accumulate_grad_batches > 1 and precision = 16 causes the following error:
RuntimeError: unscale_() has already been called on this optimizer since the last update().
https://colab.research.google.com/drive/1_7pxqPlpc79k0VYlRdtRXE0JQbhSBWHy?usp=sharing
Thanks for taking this @ydcjeff!
might also be fixed by https://github.com/PyTorchLightning/pytorch-lightning/pull/4311
I'm only getting this error on 1.0.4 (after I upgraded a few hours ago). I downgraded to 1.0.3 and there is not there.
Most helpful comment
I'm only getting this error on 1.0.4 (after I upgraded a few hours ago). I downgraded to 1.0.3 and there is not there.