Thank you very much. And I have another question.



 1chimaruGin:

print(net.module.layer1[0].conv1.weight)


It seems that “net.module.layer1[0].conv1.weight” is a struct, actually I want to get the tensor corresponding to this struct. I want to access the four dimensional array, whose entry is double or float.
Which command should I use? Thank you very much.
The following are printed after this command “print(net.module.layer1[0].conv1.weight)”.


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)