tensor for LSTM


How to reshape 2D tensor such as (100,5) to 3D (100,1,5)? LSTM must use 3D input.
Keras Model has 'input shape' parameters, how to set up?
0
💬0 Comments | 🔥0 Discussions | 👤0 Members | 🔌0 Online |
How to reshape 2D tensor such as (100,5) to 3D (100,1,5)? LSTM must use 3D input.
Keras Model has 'input shape' parameters, how to set up?
Answers
Use "reshape" layer as the first layer of your Keras sequence.
Jacob
Hey! Have you found out how to use the LSTM layer already? I'm still struggling..