Cosine similarity

i want to calcalute the cosine similarity between two vectors,but i can not the function about cosine similarity. is it needed to implement it by myself?

search it in the docs

http://pytorch.org/docs/master/search.html?q=cosine&check_keywords=yes&area=default

2 Likes

thx,it is my careless

you should google it thoroughly before posting your question.

1 Like