Skip to content

TypeError: __call__() takes 2 positional arguments but 4 were given #56

@Imorton-zd

Description

@Imorton-zd
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions