TripletMarginLoss ================= Creates a criterion that measures the triplet loss. **Abstract Signature:** ``TripletMarginLoss(anchor: Tensor, positive: Tensor, negative: Tensor, margin: float = 1.0, p: float = 2.0, eps: float = 1e-06, swap: bool = False)`` .. raw:: html
—tf.keras.losses.triplet_semihard_loss