Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions monai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
from .utils.tf32 import detect_default_tf32

detect_default_tf32()
import torch

# workaround related to https://github.com/Project-MONAI/MONAI/issues/7575
if hasattr(torch.cuda.device_count, "cache_clear"):
torch.cuda.device_count.cache_clear()
except BaseException:
from .utils.misc import MONAIEnvVars

Expand Down