Skip to content

Latest commit

 

History

History
3 lines (3 loc) · 298 Bytes

File metadata and controls

3 lines (3 loc) · 298 Bytes

Pytorch Pairwise cosine similarity
Computes the cosine similarity between all vectors in the input, pytorch originally only computes this between two vectors at a time which can be time consuming when dealing with thousands of vectors, something that is the case for embedding learning tasks.