mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Deployed d4b1ac9 with MkDocs version: 1.0.4
This commit is contained in:
@@ -1156,6 +1156,7 @@ def tng_dataloader(self):
|
||||
|
||||
<p>Set up as many optimizers and (optionally) learning rate schedulers as you need. Normally you'd need one. But in the case of GANs or something more esoteric you might have multiple.
|
||||
Lightning will call .backward() and .step() on each one in every epoch. If you use 16 bit precision it will also handle that.</p>
|
||||
<p><strong>Note:</strong> If you use multiple optimizers, training_step will have an additional <code>optimizer_idx</code> parameter. </p>
|
||||
<h5 id="return_1">Return</h5>
|
||||
<p>List or Tuple - List of optimizers with an optional second list of learning-rate schedulers</p>
|
||||
<p><strong>Example</strong></p>
|
||||
|
||||
Reference in New Issue
Block a user