Skip to content

Commit

Permalink
Merge pull request #11 from teddykoker/docker-fix
Browse files Browse the repository at this point in the history
docker fix
  • Loading branch information
teddykoker authored Mar 24, 2021
2 parents ce5be69 + df7f966 commit 220ad12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from functools import lru_cache
from subprocess import DEVNULL, call

import torch
from setuptools import setup
from torch.utils import cpp_extension

Expand All @@ -14,7 +15,7 @@ def cuda_toolkit_available():
# https://github.com/idiap/fast-transformers/blob/master/setup.py
try:
call(["nvcc"], stdout=DEVNULL, stderr=DEVNULL)
return True
return True and torch.cuda.is_available()
except FileNotFoundError:
return False

Expand Down Expand Up @@ -50,7 +51,7 @@ def ext_modules():

setup(
name="torchsort",
version="0.1.0",
version="0.1.1",
description="Differentiable sorting and ranking in PyTorch",
author="Teddy Koker",
url="https://github.com/teddykoker/torchsort",
Expand Down

0 comments on commit 220ad12

Please sign in to comment.