How to create histogram for all the feature maps of a CNN convolution layer

Let’s say I have a pretrained model (e.g Alexnet). I want to generate a histogram for all the feature maps from a convolution layer ( say 64 feature maps for convo layer 1) such that each feature map become a bin of the histogram ( In this case 64 bins). Any idea how to do that?

This thread might help you - here

1 Like