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
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
F.cosine_similarity will fail to compute the similarity along a specified dimension when the other dimensions differ. For example, if x is a 10x64 tensor, and y is a 20x64 tensor, then it is expected to get a 10x20 matrix when calling cosine_scores. However, that function won't work:
Reference:
DPR/dpr/models/biencoder.py
Line 57 in d9f3e41
F.cosine_similarity
will fail to compute the similarity along a specified dimension when the other dimensions differ. For example, ifx
is a 10x64 tensor, and y is a 20x64 tensor, then it is expected to get a 10x20 matrix when callingcosine_scores
. However, that function won't work:Since it is not used anywhere else in the repo and the paper, maybe it would be a good idea to remove
cosine_scores
?The text was updated successfully, but these errors were encountered: