Yes. How are you going to do it? I’m planning to implement it using backward hooks. However, seems that, backward hook only takes the gradient as input, and for many visualization techniques, the original input and output are also needed.
One thing I can think of, is using both forward and backward hooks, and keeping all the input/output in some external dictionary.