# tf.keras.losses.MSLE

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/keras/losses.py#L795-L806) |

#### View aliases


**Main aliases**

[`tf.keras.losses.mean_squared_logarithmic_error`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.keras.losses.msle`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.keras.metrics.MSLE`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.keras.metrics.mean_squared_logarithmic_error`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.keras.metrics.msle`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE)
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.losses.MSLE`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.compat.v1.keras.losses.mean_squared_logarithmic_error`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.compat.v1.keras.losses.msle`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.compat.v1.keras.metrics.MSLE`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.compat.v1.keras.metrics.mean_squared_logarithmic_error`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), [`tf.compat.v1.keras.metrics.msle`](https://www.tensorflow.org/api_docs/python/tf/keras/losses/MSLE), \`tf.compat.v2.keras.losses.MSLE\`, \`tf.compat.v2.keras.losses.mean_squared_logarithmic_error\`, \`tf.compat.v2.keras.losses.msle\`, \`tf.compat.v2.keras.metrics.MSLE\`, \`tf.compat.v2.keras.metrics.mean_squared_logarithmic_error\`, \`tf.compat.v2.keras.metrics.msle\`, \`tf.compat.v2.losses.MSLE\`, \`tf.compat.v2.losses.mean_squared_logarithmic_error\`, \`tf.compat.v2.losses.msle\`, \`tf.compat.v2.metrics.MSLE\`, \`tf.compat.v2.metrics.mean_squared_logarithmic_error\`, \`tf.compat.v2.metrics.msle\`

<br />

    tf.keras.losses.MSLE(
        y_true, y_pred
    )