From 874055a19a3f7ee43e41b8ad76a4f7665a2e9df4 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Tue, 9 Mar 2021 14:05:59 +0100 Subject: [PATCH] datasets --- pl_examples/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pl_examples/__init__.py b/pl_examples/__init__.py index ffd60f9ed71af..e3c5a78124137 100644 --- a/pl_examples/__init__.py +++ b/pl_examples/__init__.py @@ -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)