How to visualize the feature map of each layer of the convolutional network

1.Use register_forward_hook to get feature map

2. Use Captum or pytorch-cnn-visualizations to visualize the feature map