D2l display activations

I need some hints/help in displaying the activation’s of the layers in LeNet. Found this question asked and answered.Solved.

Linking this as a resource for other members of the community with the same question: