Hi, I’m looking for a way of accessing all the weights in a model in an automatic way (i.e. without manually resorting to the name of each layer) so that I can overwrite them.
I understand that I can see them all by doing:
for param in model.parameters():
…
but what I actually need to do is take that param and change it so that the param will have the desired value also inside the model (hence allowing me to see at inference time how the change is affecting accuracy). Thanks in advance