You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @LiyuanLucasLiu , thanks for your incredible lib. With RAdam I got better performance without changing any hyperparameter. However, this a deprecated warning in RAdam with torch==1.7.1:
UserWarning: This overload of addcmul_ is deprecated:
addcmul_(Number value, Tensor tensor1, Tensor tensor2)
Consider using one of the following signatures instead:
addcmul_(Tensor tensor1, Tensor tensor2, *, Number value) (Triggered internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
exp_avg_sq.mul_(beta2).addcmul_(1 - beta2, grad, grad)
according to the doc of addcmul_ in torch==1.7.1
Docstring:
addcmul_(tensor1, tensor2, *, value=1) -> Tensor
In-place version of :meth:`~Tensor.addcmul`
Type: builtin_function_or_method
so to adapt to 1.7.1 and disable this warning, I only need to change exp_avg_sq.mul_(beta2).addcmul_(1 - beta2, grad, grad) to exp_avg_sq.mul_(beta2).addcmul_(grad, grad, 1 - beta2), right?
The text was updated successfully, but these errors were encountered:
wenmin-wu
changed the title
Deprecated Warning in RAdam
Deprecated Warning in RAdam with torch==1.7.1
Feb 5, 2021
Hi @LiyuanLucasLiu , thanks for your incredible lib. With
RAdam
I got better performance without changing any hyperparameter. However, this a deprecated warning inRAdam
withtorch==1.7.1
:according to the doc of
addcmul_
intorch==1.7.1
so to adapt to 1.7.1 and disable this warning, I only need to change
exp_avg_sq.mul_(beta2).addcmul_(1 - beta2, grad, grad)
toexp_avg_sq.mul_(beta2).addcmul_(grad, grad, 1 - beta2)
, right?The text was updated successfully, but these errors were encountered: