You could use the add_histogram 14 method to create this visualization.
If I’m not mistaken, the way to do so would be to get the forward activations (e.g. using forward hooks), flatten them, and use the aforementioned method.