Copying weights of a specific layer - keras
According to this the following copies weights from one model to another: target_model.set_weights(model.get_weights()) What about copying the weights of a specific layer, would this work? model_1.layers[0].set_weights(source_model.layers[0].get_weights()) model_2.layers[0].set_weights(source_model.layers[0].get_weights()) If I train model_1 and model_2 will they have separate weights? The documentation doesn't state whether if this get_weights makes a deep copy or not. If this doesn't work, how can this be achieved? Of course, it would be a copy of the weights. It does not make sense the