mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-25 12:50:57 +08:00
Update RequiredTrainerInterface.md
This commit is contained in:
1 parent
ba25161dcc
commit
5ba0a8fe4c
1 file changed
+1
-1
@@ -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