TensorFlow

API

 tf.keras / losses / losses.CosineSimilarity


Deserializes a serialized loss class/function instance.

name Loss configuration.
custom_objects Optional dictionary mapping names (strings) to custom objects (classes and functions) to be considered during deserialization.

A Keras Loss instance or a loss function.

此页内容是否对您有帮助