QuantizedMarginRankingLoss

class aimet_torch.nn.QuantizedMarginRankingLoss(*args, **kwargs)[source]

Quantized subclass of torch.nn.MarginRankingLoss

forward(self, input1: torch.Tensor, input2: torch.Tensor, target: torch.Tensor) torch.Tensor

Quantized forward of torch.nn.MarginRankingLoss.

The input(s), parameter(s) (if any), and output(s) will be quantized with self.input_quantizers, self.param_quantizers, and self.output_quantizers respectively.

For more information, see QuantizationMixin.