C5W4 Encoder Error

Hi,

I am having problems with the unit test and I am getting an assertion error for the encoder output. I passed the previousl encoder_layer test, so I think the error must be in the passing the arguments to the embedding layer. However, I am not able to figure it out.

The error is as follows:
AssertionError Traceback (most recent call last)
1 # UNIT TEST
----> 2 Encoder_test(Encoder)

~/work/W4A1/public_tests.py in Encoder_test(target)
124 [[-0.4612937 , 1.0697356 , -1.4127715 , 0.8043293 ],
125 [ 0.27027237, 0.28793618, -1.6370889 , 1.0788803 ],
→ 126 [ 1.2370994 , -1.0687275 , -0.8945037 , 0.7261319 ]]]), “Wrong values case 1”
127
128 encoderq_output = encoderq(x, True, np.array([[[[1., 1., 1.]]], [[[1., 1., 0.]]]]))

AssertionError: Wrong values case 1

Can you assist?

Please click my name and message your notebook as an attachment.

Inside the call function, self.enc_layers was indexed incorrectly.