How to visualize RNN/LSTM gradients in Keras/TensorFlow?
Gradients can be fetched w.r.t. weights or outputs – we’ll be needing latter. Further, for best results, an architecture-specific treatment is desired. Below code & explanations cover every possible case of a Keras/TF RNN, and should be easily expandable to any future API changes. Completeness: code shown is a simplified version – the full version … Read more