Is there any way to get the compiled model loss/metrics functions from the model object?
I need this to access the loss function from within a callback, where I have access to self.model, but I can't find a way to access the compiled loss.
In tensorflow 2.4, model.compiled_loss._losses returns the name of the loss function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With