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

Deprecated warning with CUDA 11.3 #17

Open
jinserk opened this issue Apr 29, 2021 · 0 comments
Open

Deprecated warning with CUDA 11.3 #17

jinserk opened this issue Apr 29, 2021 · 0 comments

Comments

@jinserk
Copy link

jinserk commented Apr 29, 2021

I recently installed and run torchlars package and found a userwarning occurred:

/home/jinserk/.pyenv/versions/kai/lib/python3.9/site-packages/torchlars/lars.py:140: UserWarning: This overload of add_ is deprecated:
        add_(Number alpha, Tensor other)
Consider using one of the following signatures instead:
        add_(Tensor other, *, Number alpha) (Triggered internally at  /pytorch/torch/csrc/utils/python_arg_parser.cpp:1005.)
  p.grad.add_(weight_decay, p.data)

Guess this looks relatively simple to be fixed. It could be still run, but just in case.

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

No branches or pull requests

1 participant