C5W4 UNQ_C4, EncoderLayer

        mentor edit: code removed
        # END CODE HERE
        return encoder_layer_out

Can anyone point out what I did wrong? the error I get is

AssertionError: Wrong values when training=True

Also, Since the code is incorrect, I think this can be posted here for a while. Ill remove as soon as it works


in the layernorm2 you should sum the ffn_output with out1 not attn_output.

1 Like

You should not post your code on the Forum, regardless of whether it has errors.