Accessing learned parameters


I am trying to investigate the effect of random initialization on the leaned parameters of the model (weight & bias). I was wondering if there is an easy way to extract these parameters and inspect them?

Thank you in advance
kind regards

You can do model.parameters(), which works for any PyTorch model.