C5_WK4 prg exercise class EncoderLayer() help

Hi. I’m not sure why my function fails. Please advise. Thx.

Can you message your notebook? (click my name and message your notebook as attachment)

The issue was with capturing the correct number of return values of MultiheadAttention.

Yes. I realized the ‘, _’ required 2 return values. Thanks!