see also: unstable docs
MultiMarginLoss
Creates a criterion that optimizes a multi-class classification hinge loss (margin-based loss) between input
(a 2D mini-batch Tensor
) and output (which is a 1D tensor of target class indices, ):
For each mini-batch sample, loss in terms of 1D input and output is: