You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we could calculate cosine similarity with following succinct code:
cosine_similarity = F.cosine_similarity(support_image, target_set)
where F is imported as torch.nn.functional
In the source code, the author calculates the cosine distance as follows.
But in my opinion, the right the cosine distance should be calculated as follows.
Am i right? If not, what is the mistake?
The text was updated successfully, but these errors were encountered: