[ 参数完全一致 ] torch.nn.TripletMarginWithDistanceLoss

torch.nn.TripletMarginWithDistanceLoss

torch.nn.TripletMarginWithDistanceLoss(*, distance_function=None, margin=1.0, swap=False, reduction='mean')

paddle.nn.TripletMarginWithDistanceLoss

paddle.nn.TripletMarginWithDistanceLoss(distance_function=None, margin: float = 1.0, swap: bool = False, reduction: str = 'mean', name: str = None)

两者功能一致,参数完全一致。