Solved by InnovArul in post #2 
              
              
                L_c doesn’t have a connected computation graph, as there is no gradient function present. 
i.e., optimizer.step() would try to minimize only L_d.