Update README.md
This commit is contained in:
parent
66188209b5
commit
a48cccdc68
|
@ -77,9 +77,7 @@ class CoolModel(ptl.LightningModule):
|
||||||
return {'avg_val_loss': avg_loss}
|
return {'avg_val_loss': avg_loss}
|
||||||
|
|
||||||
def configure_optimizers(self):
|
def configure_optimizers(self):
|
||||||
optim = torch.optim.Adam(self.parameters(), lr=0.02)
|
return [torch.optim.Adam(self.parameters(), lr=0.02)]
|
||||||
self.optimizers = [optim]
|
|
||||||
return self.optimizers
|
|
||||||
|
|
||||||
@ptl.data_loader
|
@ptl.data_loader
|
||||||
def tng_dataloader(self):
|
def tng_dataloader(self):
|
||||||
|
|
Loading…
Reference in New Issue