Visualization of the weights of a linear layer

How to visualize the weights and also the gradients of a linear layer for example nn.Linear(50, 10) in a proper way for an analysis?

Thanks a lot!

Maybe you can use histgram function in tensorboard to visualize it.

I do it this way also.

I wonder whether there are also other variations which could provide a better overview…