Skip to content

Commit 00c53ca

Browse files
committed
...
1 parent 77d05af commit 00c53ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pl_examples/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
_TORCHVISION_MNIST_AVAILABLE = not bool(os.environ.get("PL_USE_MOCKED_MNIST", False))
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)

pytorch_lightning/utilities/imports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def _module_available(module_path: str) -> bool:
4343

4444

4545
def _compare_version(package: str, op, version) -> bool:
46-
"""Compare package version with some requirements
46+
"""
47+
Compare package version with some requirements
4748
4849
>>> _compare_version("torch", operator.ge, "0.1")
4950
True

0 commit comments

Comments
 (0)