QuantizedTripletMarginLoss

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

Quantized subclass of torch.nn.TripletMarginLoss

forward(self, anchor: torch.Tensor, positive: torch.Tensor, negative: torch.Tensor) torch.Tensor

Quantized forward of torch.nn.TripletMarginLoss.

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.