Thanks for the reply.
Even though the additional term I mentioned doesn’t support .backward(), it’s not a constant but a variable(python float).
In my sample code,
I think avg_pixel_value might affect the value of G_loss.
(avg_pixel_value changes every iteration)
G_loss = G_loss + avg_pixel_value
Is there any faults on my understanding?