[Course5 Week4] Assignment1 C5_W4_A1_Transformer_Subclass_v1 error

Hi all

When I ran the last function Transformer_test I got the error message below

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-46-a562b46d78e0> in <module>
      1 # UNIT TEST
----> 2 Transformer_test(Transformer, create_look_ahead_mask, create_padding_mask)

~/work/W4A1/public_tests.py in Transformer_test(target, create_look_ahead_mask, create_padding_mask)
    286     assert np.allclose(translation[0, 0, 0:8],
    287                        [0.017416516, 0.030932948, 0.024302809, 0.01997807,
--> 288                         0.014861834, 0.034384135, 0.054789476, 0.032087505]), "Wrong values in translation"
    289 
    290     keys = list(weights.keys())

AssertionError: Wrong values in translation

Does anyone know what happened?

Do I need to paste my implementation in class Transformer(tf.keras.Model) for further information?

1 Like

This is already answered here

1 Like

Didn’t really help to anything
Or it is assumed that all work being done need to be copied manuallly all over again into new version of notebook?