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 77d05af commit 00c53caCopy full SHA for 00c53ca
pl_examples/__init__.py
@@ -18,7 +18,7 @@
18
_TORCHVISION_MNIST_AVAILABLE = not bool(os.environ.get("PL_USE_MOCKED_MNIST", False))
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)
pytorch_lightning/utilities/imports.py
@@ -43,7 +43,8 @@ def _module_available(module_path: str) -> bool:
43
44
45
def _compare_version(package: str, op, version) -> bool:
46
- """Compare package version with some requirements
+ """
47
+ Compare package version with some requirements
48
49
>>> _compare_version("torch", operator.ge, "0.1")
50
True
0 commit comments