Hy @Zecheng_Zhang,



 Zecheng_Zhang:

loss = p1* loss1+p2* loss2+p3* loss3


A better way to this would be.
loss = loss1 + loss2 + loss3

But I don’t think this link here makes any sense.



 Zecheng_Zhang:

loss1.l1.weight.grad


and the rest because loss won’t have l1 as it’s attribute.