Purpose of eps parameter in TripletMarginLoss

I’m trying to understand how exactly TripletMarginLoss is implemented in PyTorch and while I get most of it, I am unable to figure where exactly epsilon fits in

The eps value is used in the pairwise_distance calls as seen here.

1 Like

Ah, was pretty straightforward in hindsight. Thanks for quick response!