Hi
I was curious about why my model stops updating when i change one of its layers by the code below

model1.x_layer.weight = nn.Parameter(model2.x_layer.weight.detach().clone())

is that because the parameter reference in my optimizer?
if that’s the case what do you suggest to do to be able to change a layer and still be able to train the model?