philipperemy / keras-tcn

Keras Temporal Convolutional Network.
MIT License
1.87k stars 454 forks source link

data shape of tcn layer #241

Closed Alan29535 closed 1 year ago

Alan29535 commented 1 year ago

I would like to ask what is the output data shape from TCN layers. Currently, I am trying to combine TCN and transformer together. However, I cannot pass the output data of TCN to the transformer directly. I think it's because the output data shape of TCN is not the same as the input data shape for the transformer. So could anyone tell me how to check the output data shape of TCN, or please give some suggestions on how to combine TCN and transformer together?

philipperemy commented 1 year ago

@Alan29535 you should be able to swap the LSTM/GRU and TCN classes.

For the transformers, I haven't used one in Keras so I can't answer your question.