Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
b5cf7063
Commit
b5cf7063
authored
Oct 27, 2022
by
Tom Aarsen
Browse files
Removing unnecessary else's
parent
4a05df34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
bitsandbytes/functional.py
bitsandbytes/functional.py
+4
-6
No files found.
bitsandbytes/functional.py
View file @
b5cf7063
...
...
@@ -133,7 +133,6 @@ class Cusparse_Context:
def
create_linear_map
(
signed
=
True
):
if
signed
:
return
torch
.
linspace
(
-
1.0
,
1.0
,
256
)
else
:
return
torch
.
linspace
(
0.0
,
1.0
,
256
)
...
...
@@ -186,12 +185,11 @@ def create_dynamic_map(signed=True, n=7):
def
get_special_format_str
():
if
not
torch
.
cuda
.
is_available
():
return
'col_turing'
major
,
minor
=
torch
.
cuda
.
get_device_capability
()
major
,
_
minor
=
torch
.
cuda
.
get_device_capability
()
if
major
<=
7
:
return
"col_turing"
el
if
major
==
8
:
if
major
==
8
:
return
"col_ampere"
else
:
return
"col_turing"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment