Solved by ptrblck in post #2 
              
              
                You could use forward hooks to print the std deviation of the layer outputs: 
class MyModel(nn.Module):
    def __init__(self):
        super(MyModel, self).__init__()
        self.conv1 = nn.Conv2d(3, 6, 3, 1, 1)
        self.pool1 = nn.MaxPool2d(2)
        self.conv2 = nn.Conv2d(6, 1, 3, 1, 1)
   …