First of all thank you.
So basically i have to use two shared loss, one for training the DL model and one for the other model, and from DL have to use the last layer output before the prediction if i got it right