In the tensorflow conv1D layer documentation, it says that;
'When using this layer as the first layer in a model, provide an input_shape argument (tuple of integers or None, e.g. (10, 128) for sequences of 10 vectors of 128-dimensional vectors, or (None, 128) for variable-length sequences of 128-dimensional vectors.'
So I understand that we can input variable length sequences but when I use a ragged tensor input for conv1D layer, it gives me an error:
ValueError: Layer conv1d does not support RaggedTensors as input.
What is really meant with variable length sequences if not RaggedTensors?
Thank you,
Masking
layer before and it would take that into account, but as far as I can see convolutional layers do not support masking (it is meant for RNN mainly). I think what that means in the documentation is that you can have batches with different sizes in the sequence length dimension. For example, in a dataset,padded_batch
can return batches with different shapes each time. – jdehesato_tensor
. You can later come back to ragged if you save therow_lengths
and pass the result tofrom_tensor
. – jdehesa