TensorFlow 1 version View source on GitHub

Retrieves a Keras loss function.

identifier A loss identifier. One of None or string name of a loss function/class or loss configuration dictionary or a loss function or a loss class instance

A Keras loss function/ Loss class instance.

ValueError If identifier cannot be interpreted.