qdrant/quaterion

Improvement: Update internal `torch.norm` calls to `torch.linalg.norm`

Closed this issue · 2 comments

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.

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

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