Module: tfa.losses.triplet

View source on GitHub

Implements triplet loss.

Classes

class TripletSemiHardLoss: Computes the triplet loss with semi-hard negative mining.

Functions

triplet_semihard_loss(...): Computes the triplet loss with semi-hard negative mining.