Hi
I am getting error with UNQ_C4 “EncoderLayer” but I am unable to understand what is the issue from the error message. Can someone please help me understand what is the issue with my EncoderLayer definition?
Please click my name and message your notebook as an attachment. Send the notebook in ipynb format and not in pdf / image format.
Sent you my notebook ipynb. Thanks for taking a look
You’re welcome.
There are 2 things to remember:
- You should pass
training
flag to the layers where necessary. - The
encoder_layer_out
calculation is incorrect. See this:output from multi-head attention (skip connection)
. It means you should take the output of# skip connection
.
Thanks Balaji
Your comment help me identify and fix the problem in UNQ_C4
I’ve been stuck with a similar problem in UNQ_C6 that I can;t understand now. Can you please help me understand what is the problem here?
Please click my name and message your notebook as an attachment. Send the notebook in ipynb format and not in pdf / image format.
Sent you ipymb attachment, thanks
Please fix the argument when calling self.layernorm2
. See from the decoder layer diagram that output of the 1st batch norm layer is taken towards the 2nd Add & Norm
block.
Thanks for the help Balaji, your comment helped me fix the issue