Class EncoderLayer, C5 W4 A1 v1.4

I am stuck in implementation of EncoderLayer. Please help, I can share my code

EncoderLayer_test(EncoderLayer)


AssertionError Traceback (most recent call last)
in
1 # UNIT TEST
----> 2 EncoderLayer_test(EncoderLayer)

~/work/W4A1/public_tests.py in EncoderLayer_test(target)
92 [[ 0.23017104, -0.98100424, -0.78707516, 1.5379084 ],
93 [-1.2280797 , 0.76477575, -0.7169283 , 1.1802323 ],
—> 94 [ 0.14880152, -0.48318022, -1.1908402 , 1.5252188 ]]), “Wrong values when training=True”
95
96 encoded = encoder_layer1(q, False, np.array([[1, 1, 0]]))

AssertionError: Wrong values when training=True

1 Like

Tip:

In the EncoderLayer(), the only method that uses the “training” parameter is dropout_ffn().

1 Like

TMosh,

I figure it out through debugging and reading carefully the instructions. Thanks

3 Likes