backends.cudnn.enabled enables cudnn for some operations such as conv layers and RNNs, which can yield a significant speedup.
The cudnn RNN implementation doesn’t support the backward operation during eval() and thus raises the error. You could disable cudnn for your workload (as already done) or try to call .train() on the RNN module separately after using model.eval().