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
9379df85
Commit
9379df85
authored
Sep 17, 2022
by
justheuristic
Browse files
check dtypes first
parent
140cdbe8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_autograd.py
tests/test_autograd.py
+1
-1
No files found.
tests/test_autograd.py
View file @
9379df85
...
@@ -367,7 +367,7 @@ def test_matmullt(
...
@@ -367,7 +367,7 @@ def test_matmullt(
if
has_bias
:
if
has_bias
:
out_torch
+=
bias
out_torch
+=
bias
assert
out_bnb
.
dtype
==
torch
.
dtype
assert
out_bnb
.
dtype
==
out_
torch
.
dtype
n
=
out_bnb
.
numel
()
n
=
out_bnb
.
numel
()
err
=
torch
.
abs
(
out_bnb
-
out_torch
).
mean
().
item
()
err
=
torch
.
abs
(
out_bnb
-
out_torch
).
mean
().
item
()
...
...
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