Adding `add_metric` API for layers/models in Keras.
Supports - adding metric tensor (both aggregated and not aggregated) on model/layer in graph mode. - adding metric tensor (both aggregated and not aggregated) in model/layer call in graph and eager mode. PiperOrigin-RevId: 221865769
Loading
Please sign in to comment