mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
updated docs
This commit is contained in:
@@ -101,7 +101,8 @@ class CoolSystem(pl.LightningModule):
|
|||||||
|
|
||||||
def configure_optimizers(self):
|
def configure_optimizers(self):
|
||||||
# REQUIRED
|
# REQUIRED
|
||||||
return [torch.optim.Adam(self.parameters(), lr=0.02)]
|
# can return multiple optimizers and learning_rate schedulers
|
||||||
|
return torch.optim.Adam(self.parameters(), lr=0.02)
|
||||||
|
|
||||||
@pl.data_loader
|
@pl.data_loader
|
||||||
def tng_dataloader(self):
|
def tng_dataloader(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user