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 af16236 commit f3aff2fCopy full SHA for f3aff2f
setup.py
@@ -147,7 +147,9 @@ def get_extensions():
147
)
148
149
is_rocm_pytorch = False
150
- if torch.__version__ >= '1.5':
+ TORCH_MAJOR = int(torch.__version__.split('.')[0])
151
+ TORCH_MINOR = int(torch.__version__.split('.')[1])
152
+ if TORCH_MAJOR > 1 or (TORCH_MAJOR == 1 and TORCH_MINOR >= 5):
153
from torch.utils.cpp_extension import ROCM_HOME
154
is_rocm_pytorch = True if ((torch.version.hip is not None) and (ROCM_HOME is not None)) else False
155
0 commit comments