Hi thanks for your reply.
I’m using Captum for the integrated gradient. I have tried either backends.cudnn.enabled=False or avoid model.eval(). But these two methods give different results. Will it affect the gradient for LSTM if we remove model.eval()?
Thanks.