Update README.md

This commit is contained in:
William Falcon 2020-05-12 08:56:32 -04:00 committed by GitHub
parent 9059d21042
commit 087bb34c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: