Dev (#136)
* comment improvements * add __init__.py * add disabling pin memory on fast dev run * rename template_utils.py to utils.py * improve README.md * add num_classes property to mnist datamodule * add sh to requirements.txt * bump package versions
This commit is contained in:
1 parent
d5da445e8d
commit
023d4bdecc
9 files changed
+27
-28
No files matched your search
@@ -52,6 +52,10 @@ class MNISTDataModule(LightningDataModule):
|
||||
self.data_val: Optional[Dataset] = None
|
||||
self.data_test: Optional[Dataset] = None
|
||||
|
||||
@property
|
||||
def num_classes(self) -> int:
|
||||
return 10
|
||||
|
||||
def prepare_data(self):
|
||||
"""Download data if needed. This method is called only from a single GPU.
|
||||
Do not use it to assign state (self.x = y)."""
|
||||
|
||||
Reference in new issue
Block a user