@albanD  Now if I don’t use detach it will also make weights change in such a way that prediction of I_w is also close to I_s(movement towards I_s)  but what I want is to make predictions of I_s to as close as I_w(movement towards I_w). on the assumption that predictions of I_w are good.