Export a LSTM with an embedding (unknow size input) layer

I’m trying to export in ONNX a model which received a list of index of word for a embedding layer in my model. The problem is I need a dummy input for the export and my input size will vary.

How can I solved my problem ?


I found a work around by padding all my sentence to a fixed length.