Fix typo (#2907)
Variable defined as `mnist_dm` but used as `mnist`. Change to use `mnist_dm`.
This commit is contained in:
parent
35a3fd2f97
commit
0097630a95
|
@ -291,7 +291,7 @@ Using DataModules allows easier sharing of full dataset definitions.
|
|||
|
||||
# use an MNIST dataset
|
||||
mnist_dm = MNISTDatamodule()
|
||||
model = LitModel(num_classes=mnist.num_classes)
|
||||
model = LitModel(num_classes=mnist_dm.num_classes)
|
||||
trainer.fit(model, mnist_dm)
|
||||
|
||||
# or other datasets with the same model
|
||||
|
|
Loading…
Reference in New Issue