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
f6978ae2
Commit
f6978ae2
authored
Oct 27, 2022
by
Tom Aarsen
Browse files
Fix critical bug in histogram_scatter_add_2d: Undefined variable
parent
7a3c9af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/functional.py
bitsandbytes/functional.py
+1
-1
No files found.
bitsandbytes/functional.py
View file @
f6978ae2
...
@@ -959,7 +959,7 @@ def histogram_scatter_add_2d(
...
@@ -959,7 +959,7 @@ def histogram_scatter_add_2d(
maxdim1
=
ct
.
c_int32
(
histogram
.
shape
[
0
])
maxdim1
=
ct
.
c_int32
(
histogram
.
shape
[
0
])
n
=
ct
.
c_int32
(
index1
.
numel
())
n
=
ct
.
c_int32
(
index1
.
numel
())
is_on_gpu
([
histogram
,
index1
,
index2
d
,
source
])
is_on_gpu
([
histogram
,
index1
,
index2
,
source
])
lib
.
chistogram_scatter_add_2d
(
get_ptr
(
histogram
),
get_ptr
(
index1
),
get_ptr
(
index2
),
get_ptr
(
source
),
maxdim1
,
n
)
lib
.
chistogram_scatter_add_2d
(
get_ptr
(
histogram
),
get_ptr
(
index1
),
get_ptr
(
index2
),
get_ptr
(
source
),
maxdim1
,
n
)
def
check_matmul
(
A
,
B
,
out
,
transposed_A
,
transposed_B
,
expected_type
=
torch
.
int8
):
def
check_matmul
(
A
,
B
,
out
,
transposed_A
,
transposed_B
,
expected_type
=
torch
.
int8
):
...
...
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