You can access anything using the argument name that you have used during model creation.
For Example
Model = net()
model.conv1.kernal_size will give kernel size
so in your case it would be print(“layer1:”, model.conv1.kernel_size, model.conv1.stride, model.conv1.padding)