diff options
author | Tom Aarsen <Cubiegamedev@gmail.com> | 2022-09-15 12:44:09 +0200 |
---|---|---|
committer | Tom Aarsen <Cubiegamedev@gmail.com> | 2022-09-15 12:44:09 +0200 |
commit | 58aa7c53f679a30e05da57939ed72a7512c854c6 (patch) | |
tree | b8b2b8dda2499bc9a3ead0a10bc1ae4d3fe7a481 | |
parent | 9b5f2eda8fbd3f042c4af7ed1b870525d4668f2a (diff) |
Perform check using implicit list length
Instead of 'ccs is not None', as ccs is always a list, so this if is currently always True
-rw-r--r-- | bitsandbytes/cuda_setup/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitsandbytes/cuda_setup/main.py b/bitsandbytes/cuda_setup/main.py index 78a2844..f11b430 100644 --- a/bitsandbytes/cuda_setup/main.py +++ b/bitsandbytes/cuda_setup/main.py @@ -103,7 +103,7 @@ def get_compute_capability(cuda): None. """ ccs = get_compute_capabilities(cuda) - if ccs is not None: + if ccs: # TODO: handle different compute capabilities; for now, take the max return ccs[-1] return None |