Actually, I don’t know how to access weights in each layer. But there is my github web page that I think It can be helpful for you.  Accessing parameters and layers in sequential is easy. Moreover, using the follow command you can easily get every layer (layers first to forth).
nn.Sequential(*list(vgg_model.features.children())[0:4])


  
      
      GitHub
  
  
    

mortezamg63/Accessing-and-modifying-different-layers-of-a-pretrained-model-in-py... 76

Contribute to Accessing-and-modifying-different-layers-of-a-pretrained-model-in-pytorch development by creating an account on GitHub.


  
  
    
    
  
  


I hope this page can be helpful