Skip to content

Commit 8be4ef3

Browse files
committed
datasets
1 parent f573043 commit 8be4ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pl_examples/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
_DATASETS_PATH = os.path.join(_PACKAGE_ROOT, 'Datasets')
1616

1717
_TORCHVISION_AVAILABLE = _module_available("torchvision")
18-
_TORCHVISION_MNIST_AVAILABLE = True
18+
_TORCHVISION_MNIST_AVAILABLE = _TORCHVISION_AVAILABLE
1919
_DALI_AVAILABLE = _module_available("nvidia.dali")
2020

21-
if _TORCHVISION_AVAILABLE:
21+
if _TORCHVISION_MNIST_AVAILABLE:
2222
try:
2323
from torchvision.datasets.mnist import MNIST
2424
MNIST(_DATASETS_PATH, download=True)

0 commit comments

Comments
 (0)