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
chenpangpang
transformers
Commits
e3d1a8da
Unverified
Commit
e3d1a8da
authored
Feb 15, 2022
by
Santiago Castro
Committed by
GitHub
Feb 15, 2022
Browse files
Add a missing space in a deprecation message (#15651)
parent
1ddf3c2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/optimization.py
src/transformers/optimization.py
+1
-1
No files found.
src/transformers/optimization.py
View file @
e3d1a8da
...
...
@@ -305,7 +305,7 @@ class AdamW(Optimizer):
if
not
no_deprecation_warning
:
warnings
.
warn
(
"This implementation of AdamW is deprecated and will be removed in a future version. Use the"
"PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning"
,
"
PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning"
,
FutureWarning
,
)
require_version
(
"torch>=1.5.0"
)
# add_ with alpha
...
...
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