Warning: This project is deprecated. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement here or on github.

tfa.losses.lifted_struct_loss

Computes the lifted structured loss.

labels 1-D tf.int32 Tensor with shape [batch_size] of multiclass integer labels.
embeddings 2-D float Tensor of embedding vectors. Embeddings should not be l2 normalized.
margin Float, margin term in the loss definition.

lifted_loss float scalar with dtype of embeddings.