HingeEmbeddingLoss — PyTorch 1.10.1 documentation
pytorch.org › torchHingeEmbeddingLoss. y y (containing 1 or -1). This is usually used for measuring whether two inputs are similar or dissimilar, e.g. using the L1 pairwise distance as. x x, and is typically used for learning nonlinear embeddings or semi-supervised learning. ℓ ( x, y) = { mean ( L), if reduction = ‘mean’; sum ( L), if reduction ...