[BugFix] Hot fix in setup.py for neuron build (#3537)

This commit is contained in:
Zhuohan Li 2024-03-20 17:59:52 -07:00 committed by GitHub
parent f1c0fc3919
commit 523e30ea0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,7 @@ class cmake_build_ext(build_ext):
def _is_cuda() -> bool:
return torch.version.cuda is not None
return torch.version.cuda is not None and not _is_neuron()
def _is_hip() -> bool: