Syntax EncoderLayer

Could anybody help me with the syntax on the EncoderLayer:
i.e. 2. Next, you will pass the output of the multi-head attention layer to a dropout layer. Don’t forget to use the training parameter to set the mode of your model. → like this: self.dropout1(self_attn_output, training=training)?
or 3. Now add a skip connection by adding your original input x and the output of the dropout layer. → self.layernorm1(self_attn_output+x)?
the corresponding error message:
AssertionError Traceback (most recent call last)
in
17
18
—> 19 EncoderLayer_test(EncoderLayer)

in EncoderLayer_test(target)
12 [[-0.5214877 , -1.001476 , -0.12321664, 1.6461804 ],
13 [-1.3114998 , 1.2167752 , -0.5830886 , 0.6778133 ],
—> 14 [ 0.25485858, 0.3776546 , -1.6564771 , 1.023964 ]],), “Wrong values”
15
16 print("\033[92mAll tests passed")

AssertionError: Wrong values

  1. This means…
    self.dropout1(self_attn_output, training=training)

  2. This means…
    self.layernorm1(x + self_attn_output)

Hi, that is the same code I wrote. I really got stuck there and need help, why am I getting this error, though the code seams all right - I have read all the comments to this issue.

Maybe the problem is in some other lines of code.

all solved, it was a typo