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
@@ -242,19 +249,29 @@ Here we add a learning-rate warm up
242
249
# update params
243
250
optimizer.step(closure=closure)
244
251
245
-
The default ``optimizer_step`` is relying on the internal ``LightningOptimizer`` to properly perform a step.
252
+
.. note:: The default ``optimizer_step`` is relying on the internal ``LightningOptimizer`` to properly perform a step. It handles TPUs, AMP, accumulate_grad_batches, zero_grad, and much more ...
246
253
247
254
.. testcode::
248
255
249
-
from pytorch_lightning.core.optimizer import LightningOptimizer
0 commit comments