# Correcting 4-dimensional shape to 3-dimensional shape TCN

I am having issues correctly shaping the 3-dimensional layer in the model. Each time I run the code, I receive the error ValueError: Input 0 of layer "SDropout_0" is incompatible with the layer: expected ndim=3, found ndim=4. Full shape received: (None, 1, 26, 64)

I have tried a few different things but it seems that I am missing something to make sure it is a 3-dim and not a 4-dim. Any advice would be greatly appreciated.

Code:

# Define the input shape and the number of output classes
input_shape = (1, 26)
output_classes = 10

# Define the model using the TCN architecture
model = keras.Sequential()