dalisson / pairwise_cosine_distance_pytorch Goto Github PK
View Code? Open in Web Editor NEWSimple function that computes pairwaise cosine distance between several vectors at once, pytorch can only compute beween two vectors at a time, which is time consuming and inneficient when you have multiple vectors.