Thank you for your answer.
The loss function is a little big long. In brief, I summed up the difference between my two predictions.
But, as I have a completely independent forward passes, how the two computation graph are accumulated to calculate the gradients for all parameters ?
Thank’s again.