philipperemy/keras-tcn

AttributeError: 'tuple' object has no attribute 'as_list'

ohilo12 opened this issue · 3 comments

Hello,

I have implemented a TNC layer.

The first attempt:
from keras.models import Sequential
from tcn import TCN

model = Sequential()
model.add( keras.Input(batch_size=None, shape=(None,5)) )
model.add( TCN(nb_filters=4, kernel_size=12, nb_stacks=1, 
              dilations=(1, 2, 4, 8), padding="same", use_skip_connections=True, dropout_rate=0.0, 
              return_sequences=False, activation="relu") ) 

The second attempt:
from keras.models import Sequential
from tcn import TCN

model = Sequential()    
model.add( TCN(nb_filters=4, kernel_size=12, nb_stacks=1, 
              dilations=(1, 2, 4, 8), padding="same", use_skip_connections=True, dropout_rate=0.0, 
              return_sequences=False, activation="relu", input_shape=(None, 5)) )

However, an error always occurs: AttributeError: 'tuple' object has no attribute 'as_list'

Is this a bug, or am I doing something wrong?

it's Keras 3, see few issues before #256

Tnak you very much, it works now!

Should be fixed with #262