keras-team/keras-nlp

Retrieving Model Text in Custom Loss Function for Training

Opened this issue · 0 comments

Hi,

Is it possible to design a custom loss function that retrieves the model's predicted text during training? Based on this predicted text, I'd like to perform calculations to influence the loss value.