Skip to content

Commit

Permalink
Update loss.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yangguohao authored 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
Original file line number Diff line number Diff line change
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

1 comment on commit eecb30f

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.