title: How do I use a masking layer with a temporal convolutional network (TCN) layer?
body: <p>I have a sequence of time data, with certain time steps missing like [0,nan, nan, 3, 4, nan,6]. I want to fill the Nans with a value like -1 and then use a masking layer to teach my model to ignore those time steps as the values are missing. With LSTM layer it is quite straightforward as its keras supported but with a TCN layer (<a href="https://github.com/philipperemy/keras-tcn" rel="nofollow noreferrer">https://github.com/philipperemy/keras-tcn</a>) how do I configure it? <a href="https://keras.io/guides/understanding_masking_and_padding/" rel="nofollow noreferrer">https://keras.io/guides/understanding_masking_and_padding/</a> This article provides some insights into custom layers but I haven't been able to understand enough to translate it for a TCN layer.</p>