Problems at week 1 Improvise_a_Jazz_Solo_with_an_LSTM_Network_v4

Hello, I"m having some difficulty at the exercise 1
Initially, I attempted to use a Lambda layer for slicing the timesteps, but encountered an error indicating an expected TensorFlowOpLayer with shape (None, 90),
To address this, I switched to using tf.slice to select the timesteps directly, hoping to avoid introducing the unwanted dimension whereas my operation resulted in a value with shape (None, 1, 90).

Why not use this simple method given in the notebook?

1 Like

I worked ! Thank you so much for your time