Add a missing space in a deprecation message (#15651)

This commit is contained in:
Santiago Castro 2022-02-15 19:12:30 -05:00 committed by GitHub
parent 1ddf3c2b74
commit e3d1a8dabc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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