Stacking lstm layers with nn.lstm


I want to retain information of my data using lstm.

However on debugging I am finding that model is not performing well and it should retain more info from the past.

I would like to know whether stacking lstm with num_layers will help in this regard and what is the primary purpose of adding layers to lstm.