Initial weights in Convolutional Neural Networks and Artificial Neural Networks

Dear friends,
Can anyone tell me how to visualize or print the initial weights assigned to the kernels while implementing Convolutional Neural Networks and Artificial Neural Networks using the Pytorch framework?

You can access to .weight field of each Module.

  1. Create the class of your CNN
  2. Istantiate it like: model = YourCNN()
  3. list(model.parameters())