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.contrastive

View source on GitHub

Implements contrastive loss.

Classes

class ContrastiveLoss: Computes the contrastive loss between y_true and y_pred.

Functions

contrastive_loss(...): Computes the contrastive loss between y_true and y_pred.