What is the difference between cosine similarity functions torch.nn.CosineSimilarity and torch.nn.functional.cosine_similarity ? Where can we use and where we shouldn’t ? If we are using it inside a model with back-propagation flow, which one can we use ?