View source on GitHub |
Serializes loss function or Loss
instance.
tf.keras.losses.serialize(
loss, use_legacy_format=False
)
Args | |
---|---|
loss
|
A Keras Loss instance or a loss function.
|
use_legacy_format
|
Boolean, whether to use the legacy serialization
format. Defaults to False .
|
Returns | |
---|---|
Loss configuration dictionary. |