tensor for LSTM

dongsheng_zhudongsheng_zhu Member Posts: 2 Contributor I
edited November 2018 in Help

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? 


  • jacobcybulskijacobcybulski Member, University Professor Posts: 391 Unicorn

    Use "reshape" layer as the first layer of your Keras sequence.


  • romanstrijbosromanstrijbos Member Posts: 4 Contributor I

    Hey! Have you found out how to use the LSTM layer already? I'm still struggling..

Sign In or Register to comment.