def __init__(self, margin: float, sampler_inbatch: "IInbatchTripletSampler"):
        """
        Args:
            margin: margin value
            sampler_inbatch: sampler for forming triplets inside the batch
        """
        super().__init__()
        self._sampler_inbatch = sampler_inbatch
        self._triplet_margin_loss = TripletMarginLoss(margin=margin)

        Args:
            margin: margin value
            sampler_inbatch: sampler for forming triplets inside the batch
        
catalyst/contrib/losses/triplet.py