Hey guys,
i have some problems with exercise 7. The code seems ok but when i run it this assertion error pops up:
AssertionError Traceback (most recent call last)
in
1 # UNIT TEST
----> 2 Decoder_test(Decoder, create_look_ahead_mask, create_padding_mask)
~/work/W4A1/public_tests.py in Decoder_test(target, create_look_ahead_mask, create_padding_mask)
221 assert tf.is_tensor(outd), “Wrong type for outd. It must be a dict”
222 assert np.allclose(tf.shape(outd), tf.shape(encoderq_output)), f"Wrong shape. We expected { tf.shape(encoderq_output)}"
→ 223 assert np.allclose(outd[1, 1], [-0.2715261, -0.5606001, -0.861783, 1.69390933]), “Wrong values in outd”
224
225 keys = list(att_weights.keys())
AssertionError: Wrong values in outd
In the previous exercises all test passed.