I have a complicated CNN model that contains many layers, I want to copy some of the layer parameters from external data, such as a numpy array.
So how can I set one specific layer’s parameters by the layer name, say “conv3_3” ?
In pytorch I get the model  parameters via:
params = list(model.parameters())

for p in params:
    print p.size()

But how can I get parameter according to a layer name and then change its values?

What I want to do can be described below:
caffe_params = caffe_model.parameters()

caffe_params['conv3_1'] = np.zeros((64, 128, 3, 3))