TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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.