Skip to content

Commit

Permalink
datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 15, 2021
1 parent 80e2b5d commit 874055a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pl_examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
_DATASETS_PATH = os.path.join(_PACKAGE_ROOT, 'Datasets')

_TORCHVISION_AVAILABLE = _module_available("torchvision")
_TORCHVISION_MNIST_AVAILABLE = True
_TORCHVISION_MNIST_AVAILABLE = _TORCHVISION_AVAILABLE
_DALI_AVAILABLE = _module_available("nvidia.dali")

if _TORCHVISION_AVAILABLE:
if _TORCHVISION_MNIST_AVAILABLE:
try:
from torchvision.datasets.mnist import MNIST
MNIST(_DATASETS_PATH, download=True)
Expand Down

0 comments on commit 874055a

Please sign in to comment.