pytorch / 2 / generated / torch.nn.functional.cosine_embedding_loss.html

torch.nn.functional.cosine_embedding_loss

torch.nn.functional.cosine_embedding_loss(input1, input2, target, margin=0, size_average=None, reduce=None, reduction='mean') → Tensor [source]

See CosineEmbeddingLoss for details.

Return type

Tensor

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.cosine_embedding_loss.html