AttributeError: 'tuple' object has no attribute 'as_list'
ohilo12 opened this issue · 3 comments
ohilo12 commented
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?
ohilo12 commented
Tnak you very much, it works now!
philipperemy commented
Should be fixed with #262