Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserWarning: this overload of addcmul_ is deprecated #71

Closed
unaiic opened this issue Feb 19, 2021 · 0 comments · Fixed by #77
Closed

UserWarning: this overload of addcmul_ is deprecated #71

unaiic opened this issue Feb 19, 2021 · 0 comments · Fixed by #77

Comments

@unaiic
Copy link

unaiic commented Feb 19, 2021

I'm using Google Colab to train some nets. However, I get the following warning:

/content/drive/My Drive/nnue-pytorch/ranger.py:136: 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)

It is not a big problem since I can train anyway, but maybe updating addcmul_ should be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant