def triplet(anchor, positive, negative, margin=0.2):
 return Triplet(margin)(anchor, positive, negative)

def triplet ( anchor , positive , negative , margin = 0.2 ) : return Triplet ( margin ) ( anchor , positive , negative )
computes triplet loss .