How to plot Saliency map from RNN model in NLP task?

Hi, can you paste your complete code here. Include the training phase of your code. Maybe you’re missing something there.

Also check if you’ve this same problem raised here Cudnn RNN backward can only be called in training mode