def __init__(self, margin=1.0, reduction="mean"):
        """
        Args:
            margin: margin parameter
            reduction: criterion reduction type
        """
        super().__init__()
        self.margin = margin
        self.reduction = reduction or "none"

        Args:
            margin: margin parameter
            reduction: criterion reduction type
        
catalyst/contrib/losses/contrastive.py