Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 12, 2023
1 parent f0e788f commit 6ac12b3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ def check_gpus():


def has_gpu():
try:
import GPUtil

return len(GPUtil.getAvailable()) > 0
except ImportError:
return check_gpus() > 0
return check_gpus() > 0


onnxruntime = "onnxruntime"
Expand Down Expand Up @@ -82,7 +77,6 @@ def has_gpu():
"ai-models",
"onnx",
os.environ.get("ONNXRUNTIME", onnxruntime),
"GPUtil",
],
zip_safe=True,
keywords="tool",
Expand Down

0 comments on commit 6ac12b3

Please sign in to comment.