TensorFlow 1 version | View source on GitHub |
Deserializes a serialized loss class/function instance.
tf.keras.losses.deserialize(
name, custom_objects=None
)
Args | |
---|---|
name
|
Loss configuration. |
custom_objects
|
Optional dictionary mapping names (strings) to custom objects (classes and functions) to be considered during deserialization. |
Returns | |
---|---|
A Keras Loss instance or a loss function.
|