It looks like the extra dimensions are being collapsed somewhere internally through a reshape, but attempting to use the model can result in shaping errors.
If you try this same thing with other RNNs, such as out = tf.keras.layers.SimpleRNN(128)(inp) then you will get the error message:
ValueError: Input 0 of layer simple_rnn_0 is incompatible with the layer: expected ndim=3, found ndim=4. Full shape received: [200, 1000, 8, 128]
I think we should perform the same kind of validation to disallow ndim>3 explicitly (unless of course there's a way to make this work correctly)?
Minimal reproducer:
Output:
It looks like the extra dimensions are being collapsed somewhere internally through a reshape, but attempting to use the model can result in shaping errors.
If you try this same thing with other RNNs, such as
out = tf.keras.layers.SimpleRNN(128)(inp)
then you will get the error message:I think we should perform the same kind of validation to disallow
ndim>3
explicitly (unless of course there's a way to make this work correctly)?