We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f573043 commit 8be4ef3Copy full SHA for 8be4ef3
pl_examples/__init__.py
@@ -15,10 +15,10 @@
15
_DATASETS_PATH = os.path.join(_PACKAGE_ROOT, 'Datasets')
16
17
_TORCHVISION_AVAILABLE = _module_available("torchvision")
18
-_TORCHVISION_MNIST_AVAILABLE = True
+_TORCHVISION_MNIST_AVAILABLE = _TORCHVISION_AVAILABLE
19
_DALI_AVAILABLE = _module_available("nvidia.dali")
20
21
-if _TORCHVISION_AVAILABLE:
+if _TORCHVISION_MNIST_AVAILABLE:
22
try:
23
from torchvision.datasets.mnist import MNIST
24
MNIST(_DATASETS_PATH, download=True)
0 commit comments