MultiLabelSoftMarginLoss — PyTorch 1.10.1 documentation
pytorch.org › docs › stableMultiLabelSoftMarginLoss. (N, C) (N,C) . For each sample in the minibatch: y [i] \in \left\ {0, \; 1\right\} y[i] ∈ {0, 1}. weight ( Tensor, optional) – a manual rescaling weight given to each class. If given, it has to be a Tensor of size C. Otherwise, it is treated as if having all ones. size_average ( bool, optional) – Deprecated (see ...