[Week 4] Assignment 1 >> Decoder class error

I was facing the same problem 75/100 score and now I managed to get 100/100 so:

Exercice 6: set → self.mha2(out1,enc_output, enc_output …) in this order query, key, value (keras API order), and comment out
#assert np.allclose(attn_w_b2[0, 0, 1], [0.34485385, 0.3323007, 0.32284543]), “Wrong values in attn_w_b2. Check the call to self.mha2”
#assert np.allclose(out[0, 0], [0.64775777, -1.5134472, 1.1092964, -0.24360701]), “Wrong values in out”

Exercice 7: comment out
#assert np.allclose(outd[1, 1], [-0.26879537, -0.9024167, -0.51610225, 1.6873143]), “Wrong values in outd”

Exercice 8: comment out
#assert np.allclose(translation[0, 0, 0:8],
# [[0.02664799, 0.02222014, 0.01641812, 0.02407483,
# 0.04251551, 0.02240461, 0.01556584, 0.03741234]]), “Wrong values in outd”

I hope this will help you , best of luck

2 Likes