Description
Hello,
I have a question regarding the following part used for the Prototypical loss computation.
voxceleb_trainer/loss/proto.py
Line 31 in 343af8b
From my understanding, output should be similar to the cosine similarity matrix used for the Angular Prototypical loss but based on Euclidean distances instead.
Thus, the output tensor should have a shape of out_positive
and sample out_anchor
.
However, F.pairwise_distance
computes the pairwise distance between out_positive
and out_anchor
and not the distance between each pair between two sets of row vectors like torch.cdist.
As a result the output shape will be
Thanks.