hi,
I am confused with the input of multihead attention,
It should be Q, K, V right?
self.mha = MultiHeadAttention(num_heads=num_heads,
key_dim=embedding_dim,
dropout=dropout_rate)
in the programming assignment,
exercise 4
class EncoderLayer
def call(self, x, training, mask):
the input of function call only contains x,
what are the values of input for self.mha ?
i wrote self_mha_output = self.mha(x, return_attention_scores=True, training=True)
and got error like TypeError: call() missing 1 required positional argument: ‘value’
Sorry I am still not quite understand all details of encoder-decoder architecture,
can anyone help me?
thanks