Hello everyone,
I’m implementing an LSTM for a very particular time series problem where I basically have a dynamical system that advances in time and the LSTM analyzes this and makes some predictions.
My question is that I had a bug when I started working on the code which i solved adding this line:
hidden = tuple([each.data for each in hidden])

I don’t really understand why is this needed and what this does, and cannot find anywhere a proper explanation. If you can point me to some resource I would be very grateful.
Thank you in advance.