Maximum filter activation

The keras team made a pretty good blog post about producing images that maximally activate each of the filters in a CNN, for the purpose of visualizing the features that a CNN learns. It’s linked below. Has anyone seen or tried any implementations of this using PyTorch tools?

https://blog.keras.io/how-convolutional-neural-networks-see-the-world.html