ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.losses.cosine

View source on GitHub

Computes the cosine similarity between labels and predictions.