Skip to content

Commit

Permalink
Update loss.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yangguohao committed Jun 13, 2022
1 parent e6793b9 commit eecb30f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/paddle/nn/layer/loss.py
Expand Up @@ -1501,12 +1501,12 @@ def __init__(self,

def forward(self, input, positive, negative):
return F.triplet_margin_with_distance_loss(input,
positive,
negative,
margin=self.margin,
swap=self.swap,
reduction=self.reduction,
name=self.name)
positive,
negative,
margin=self.margin,
swap=self.swap,
reduction=self.reduction,
name=self.name)


class TripletMarginLoss(Layer):
Expand Down

0 comments on commit eecb30f

Please sign in to comment.