Week 4 A1 Decoder Layer


For the exercise in which we create a Decoder layer I am getting this error. I am not able to figure out what’s wrong

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)

  1. The argument to self.layernorm2 is incorrect.
  2. Do pass the training flag to all layers that are trainable.

Don’t forget to remove code from your post. It’s uncool to post code in public and could get your access to the forum revoked / suspended.