File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
from functools import lru_cache
6
6
from subprocess import DEVNULL , call
7
7
8
+ import torch
8
9
from setuptools import setup
9
10
from torch .utils import cpp_extension
10
11
@@ -14,7 +15,7 @@ def cuda_toolkit_available():
14
15
# https://github.com/idiap/fast-transformers/blob/master/setup.py
15
16
try :
16
17
call (["nvcc" ], stdout = DEVNULL , stderr = DEVNULL )
17
- return True
18
+ return True and torch . cuda . is_available ()
18
19
except FileNotFoundError :
19
20
return False
20
21
@@ -50,7 +51,7 @@ def ext_modules():
50
51
51
52
setup (
52
53
name = "torchsort" ,
53
- version = "0.1.0 " ,
54
+ version = "0.1.1 " ,
54
55
description = "Differentiable sorting and ranking in PyTorch" ,
55
56
author = "Teddy Koker" ,
56
57
url = "https://github.com/teddykoker/torchsort" ,
You can’t perform that action at this time.
0 commit comments