@Digvijay_mishra Got it


Before you compare the results, you have to ensure that both are using the same random seed


Also, when you see that your results are not matching with the inbuilt function’s output, are you comparing the output of self.rnn or are you checking the output after the self.fc ( fully connected layers )
The reason is ask this is because for RNN we have just two activations inbuilt ( TANH and RELU ) but for a general layer there are lots of activation functions like LEAKYRELU etc


Can you share the forward code of the above module, so that we can help further