pytorch-metric-learning icon indicating copy to clipboard operation
pytorch-metric-learning copied to clipboard

Only use distance.compute_mat if indices_tuple is None or number of pairs/triplets is greater than some threshold

Open KevinMusgrave opened this issue 4 years ago • 0 comments

If the number of mined pairs or triplets is small, then it doesn't make sense to compute all pairwise distances in the batch using compute_mat.

KevinMusgrave avatar Aug 15 '20 21:08 KevinMusgrave