I'm trying to make the following lines of code working:
low_encoder_out = TimeDistributed( AutoregressiveDecoder(...) )([X_tf, embeddings])
Where AutoregressiveDecoder is a custom layer that takes two inputs.
After a bit of googling, the problem seems to be that the TimeDistributed wrapper doesn't accept multiple inputs. There are solutions that proposes to merge the two inputs before feeding it to the layer, but since their shape is
X_tf.shape: (?, 16, 16, 128, 5)
embeddings.shape: (?, 16, 1024)
I really don't know how to merge them. Is there a way of having the TimeDistributed layer to work with more than one input? Or, alternatively, is there any way to merge the two inputs in a nice way?