Improvement: Update internal `torch.norm` calls to `torch.linalg.norm`
KarahanS opened this issue · 2 comments
KarahanS commented
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.
helios2003 commented
Hello this is Ankit ....and I like to contribute open source. I found this particular issue interesting. Can I be assigned this issue?