mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
updated optimizer_step docs
This commit is contained in:
@@ -195,6 +195,9 @@ def configure_optimizers(self):
|
|||||||
return [generator_opt, disriminator_opt], [discriminator_sched]
|
return [generator_opt, disriminator_opt], [discriminator_sched]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you need to control how often those optimizers step or override the default .step() schedule, override
|
||||||
|
the [optimizer_step](https://williamfalcon.github.io/pytorch-lightning/Trainer/hooks/#optimizer_step) hook.
|
||||||
|
|
||||||
## Optional Methods
|
## Optional Methods
|
||||||
|
|
||||||
### validation_step
|
### validation_step
|
||||||
|
|||||||
Reference in New Issue
Block a user