Solved by albanD in post #2 
              
              
                Hi, 
This value is taken into account. 
But if it is constant, grad(loss + C) = grad(loss) + grad(C ) = grad(loss). So adding a constant to your loss won’t change the gradients you get.