How to use the max margin loss?

How to use the [max margin loss]:frowning:https://pytorch.org/docs/stable/nn.html#torch.nn.MarginRankingLoss):

The inputs are expected to be distances or the loss function computes the distances between x1 and x2?

E.g. x1 and x2 should be tensors or scalar values?

try to Learn
[Hinge Loss]
[support vector machine]