tensor for LSTM

dongsheng_zhu
dongsheng_zhu New Altair Community Member
edited November 2024 in Community Q&A

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? 

Tagged:

Answers

  • jacobcybulski
    jacobcybulski New Altair Community Member

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

    Jacob

  • romanstrijbos
    romanstrijbos New Altair Community Member

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