MuggleWang / CosFace_pytorch

Pytorch implementation of CosFace
MIT License
242 stars 52 forks source link

Question w.r.t cosine_sim #12

Closed LLYXC closed 5 years ago

LLYXC commented 5 years ago

Hi Yirong, thank you so much for sharing your code. I found torch.ger() is used to compute the cosine similarity between two vectors under the file 'layer.py'. However, this operation is used for obtaining the outer product. Should the inner product be used here?