Tensorflow ragged constant with lstm

How to pass to tensorflow.ragged.constant to lstm in version 2.16

in version 2.16 it neither allowed to make the input shape = (None, 6) not making layers.Input(shape=(None, 6), ragged=True) because ragged is deprecated in that version.

any help please?

Hi @Ahmad_Alashery ,

Welcome to the TensorFlow Forum ,

I tried to define the input layer with a ragged argument it executed successfully

image (3)

Could you please provide the standalone code to reproduce the issue?

Thank You .

Thanks for your response. It is totally right in older versions but it is not the case in version 2.16.1

tf.keras.Input(
shape=None,
batch_size=None,
dtype=None,
sparse=None,
batch_shape=None,
name=None,
tensor=None
)

Hi @Ahmad_Alashery ,

Thanks for your code ,

you can follow this approach mentioned in github:

https://github.com/keras-team/keras/issues/19646#issuecomment-2086350475

Thank you !