I am using Pytorch to train ResNet18 on CIFAR10 dataset.
My question is , How to access the weights of one particular convolutional kernel of particular layer?
It seems that “net.module.layer1[0].conv1.weight” is a struct, I merely want to get the tensor corresponding to this struct. The following are printed  after this command “net = ResNet18()” and “print(net.module.layer1[0].conv1.weight)”. Thank you very much.


Parameter containing:
tensor([[[[ 0.0239, -0.0199, -0.0045],
[ 0.0490,  0.0366,  0.0082],
[ 0.0374,  0.0352,  0.0106]],
     .... ...

     [[ 0.0250,  0.0002,  0.0127],
      [-0.0045,  0.0197, -0.0044],
      [ 0.0214,  0.0195,  0.0011]]]], device='cuda:0', requires_grad=True)