tf.keras.losses.cosine

View source on GitHub

Computes the cosine similarity between labels and predictions.