decoder_inputs = Input(shape=((None, num_decoder_tokens)))
decoder_layer = AttGRUCond(latent_dim,return_sequences=True)
decoder_outputs, states = decoder_layer(decoder_inputs,encoder_outputs,state)
decoder_dense = Dense(num_decoder_tokens, activation='softmax')
decoder_seqs = decoder_dense(decoder_outputs)
When using the AttGRUCond layer, the above code snippet yields a type error:
File "D:/intern/experiments/myAtt_with_custom.py", line 183, in <module>
decoder_outputs, sts = decoder_layer(decoder_inputs,encoder_outputs,state)
TypeError: __call__() takes 2 positional arguments but 4 were given
I would like to ask if the way using this layer is right? Thanks.