I’d like to use  TripletMarginLoss 5, but i like to modify the distance d with some custom fuction.
Can anyone please help and show me how I can rewrite the TripletMarginLoss in a way that i can modify the parts.
Looking at the source code it gets me to def triplet_margin_loss  which is not that much useful either