Hi
I am working on the Encoder part of the Transformer Arch assignment. I am getting the below error:
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-24-edf0595e0478> in <module>
1 # UNIT TEST
----> 2 Encoder_test(Encoder)
3
4 # tf.random.set_seed(10)
5
~/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
All my previous unit tests (like for EncoderLayer) are passing fine. I have done quite a bit of troubleshooting but am unable to spot the place where I may be making a mistake. So, any help here could help. I can share my notebook offline if required. Couple of things I noticed during my troubleshooting is that, 1) Same assertion error for all the other cases too and, 2) these values are not matching only for the second batch in all the 3 cases.
Kindly help. Thank you
Karthik