Retrace Keras history in `add_loss` and `add_metric`
In functional graph network models, custom losses and metrics can end up disconnected from the network. We can retrace the graph and insert the additional ancillary layers to support this use case. In this way, the user can use custom losses and metrics computed by layers. Fixes #30378. PiperOrigin-RevId: 258843847
Showing
想要评论请 注册 或 登录