mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Deployed 7e38f1f with MkDocs version: 1.0.4
This commit is contained in:
@@ -1163,6 +1163,8 @@ def configure_optimizers(self):
|
||||
return [generator_opt, disriminator_opt], [discriminator_sched]
|
||||
</code></pre>
|
||||
|
||||
<p>If you need to control how often those optimizers step or override the default .step() schedule, override
|
||||
the <a href="https://williamfalcon.github.io/pytorch-lightning/Trainer/hooks/#optimizer_step">optimizer_step</a> hook. </p>
|
||||
<h2 id="optional-methods">Optional Methods</h2>
|
||||
<h3 id="validation_step">validation_step</h3>
|
||||
<pre><code class="python">def validation_step(self, data_batch, batch_nb)
|
||||
|
||||
Reference in New Issue
Block a user