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.

Type Aliases

Number

TensorLike