mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Update RequiredTrainerInterface.md
This commit is contained in:
@@ -234,7 +234,7 @@ Tuple - List of optimizers and list of schedulers
|
||||
``` {.python}
|
||||
# most cases
|
||||
def configure_optimizers(self):
|
||||
opt = Adam(self.model.parameters(), lr=0.01)
|
||||
opt = Adam(self.parameters(), lr=0.01)
|
||||
return [opt], []
|
||||
|
||||
# gan example, with scheduler for discriminator
|
||||
|
||||
Reference in New Issue
Block a user