mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
Update README.md
This commit is contained in:
1 parent
9059d21042
commit
087bb34c68
1 file changed
+2
-2
@@ -80,9 +80,9 @@ class LitClassifier(pl.LightningModule):
|
||||
# train!
|
||||
train_loader = DataLoader(MNIST(os.getcwd(), train=True, download=True, transform=transforms.ToTensor()), batch_size=32)
|
||||
|
||||
mnist_model = LitClassifier()
|
||||
model = LitClassifier()
|
||||
trainer = pl.Trainer(gpus=8, precision=16)
|
||||
trainer.fit(mnist_model, train_loader)
|
||||
trainer.fit(model, train_loader)
|
||||
```
|
||||
|
||||
Other examples:
|
||||
|
||||
Reference in new issue
Block a user