A small update, I found a way to manipulate the stat_dict from the pretrained AlexNet.
I did it with
sd = model.state_dict()
sd[‘features.0.weight’][0:2].zero_()
My question is, if there is a simular way to override the tensor within the state_dict with random numbers instead of just zeros
So basically
“sd[‘features.0.weight’][0:2].randn_()”