arabeh's picture
Add v1/v2 apps, update README and deps
dbd1ab1
raw
history blame
300 Bytes
import pytorch_lightning as pl
import torch
class BaseLightningModule(pl.LightningModule):
"""
Minimal LightningModule base for the demo.
"""
def configure_optimizers(self):
lr = getattr(self.hparams, "lr", 1e-3)
return torch.optim.Adam(self.parameters(), lr=lr)