@ptrblck @Iridium_Blue thank you both for your reply. I saw the Better_LSTM_Pytorch 34 code, and I was wondering if this is indeed a correct implementation of recurrent dropout.
VariationalDropout class:         Applies the same dropout mask across the temporal dimension     See https://arxiv.org/abs/1512.05287 for more details.     Note that this is not applied to the recurrent activations in the LSTM like the above paper.     Instead, it is applied to the inputs and outputs of the recurrent layer.