Solved by albanD in post #2 
              
              
                Hi, 
No it won’t because for a parameter w in the second half of your net, dloss1/dw = 0. So the contribution of these will just be 0 (ignored in practice).