Visualizing activations with forward hooks (PyTorch)