Skip to content

Commit d74f02c

Browse files
authored
[MISC] Bump up min version requirement for Torch after introducing zero-copy. (#2034)
1 parent 6ba836c commit d74f02c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

genesis/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
try:
1919
import torch
20+
21+
if tuple(map(int, torch.__version__.split(".")[:2])) < (2, 8):
22+
raise ImportError(
23+
"'torch<2.8.0' is not supported. Please update pytorch manually: https://pytorch.org/get-started/locally/"
24+
)
2025
except ImportError as e:
2126
raise ImportError(
2227
"'torch' module not available. Please install pytorch manually: https://pytorch.org/get-started/locally/"

0 commit comments

Comments
 (0)