Solved by krrishabh in post #4 
              
              
                Sorry I was giving you this link : https://github.com/prabhuomkar/pytorch-cpp/tree/master/tutorials/intermediate/recurrent_neural_network 
By mistake I have given u the wrong link.