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

Improvement: Update internal torch.norm calls to torch.linalg.norm #203

Closed
KarahanS opened this issue Apr 1, 2023 · 2 comments
Closed

Comments

@KarahanS
Copy link
Contributor

KarahanS commented Apr 1, 2023

In various places, we are using torch.norm to calculate the vector norms of the inputs (for example here) . According to the documentation:

torch.norm is deprecated and may be removed in a future PyTorch release. Its documentation and behavior may be incorrect, and it is no longer actively maintained.

It's better to switch to alternatives such as torch.linalg.norm or torch.nn.function.normalize if applicable.

@KarahanS
Copy link
Contributor Author

KarahanS commented Apr 1, 2023

I'll be working on this after the PR #202 is merged/closed.

@helios2003
Copy link

Hello this is Ankit ....and I like to contribute open source. I found this particular issue interesting. Can I be assigned this issue?

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

2 participants