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
16fd2fde
Unverified
Commit
16fd2fde
authored
Jan 01, 2024
by
Tim Dettmers
Committed by
GitHub
Jan 01, 2024
Browse files
Merge pull request #601 from eltociear/patch-1
Fix typo in test_optim.py
parents
d83c5fe4
87816e4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_optim.py
tests/test_optim.py
+1
-1
No files found.
tests/test_optim.py
View file @
16fd2fde
...
@@ -169,7 +169,7 @@ def test_optimizer32bit(dim1, dim2, gtype, optim_name):
...
@@ -169,7 +169,7 @@ def test_optimizer32bit(dim1, dim2, gtype, optim_name):
if
gtype
!=
torch
.
float32
:
if
gtype
!=
torch
.
float32
:
# the adam buffers should also be close because they are 32-bit
# the adam buffers should also be close because they are 32-bit
# but the paramters can diverge because they are 16-bit
# but the param
e
ters can diverge because they are 16-bit
# the difference grow larger and larger with each update
# the difference grow larger and larger with each update
# --> copy the state to keep weights close
# --> copy the state to keep weights close
p1
.
data
=
p1
.
data
.
to
(
p2
.
dtype
).
float
()
p1
.
data
=
p1
.
data
.
to
(
p2
.
dtype
).
float
()
...
...
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