Solved by albanD in post #2 
              
              
                Hi, 
Since I guess you don’t want gradients to flow back this op, you should do: 
with torch.no_grad():
    (nn.Conv2d).weight.copy_((other nn.Conv2d).weight)