I think I correctly implemented “Transformer” (it is quite straight forward) but got a grading error as follows:
Code Cell UNQ_C1: Function ‘get_angles’ is correct.
Code Cell UNQ_C2: Function ‘positional_encoding’ is correct.
Code Cell UNQ_C3: Function ‘scaled_dot_product_attention’ is correct.
Code Cell UNQ_C4: Function ‘EncoderLayer’ is correct.
Code Cell UNQ_C5: Function ‘Encoder’ is correct.
Code Cell UNQ_C6: Function ‘DecoderLayer’ is correct.
Code Cell UNQ_C7: Function ‘Decoder’ is correct.
Code Cell UNQ_C8: Unexpected error (InvalidArgumentError()) occurred during function check. We expected function Transformer
to return type <class ‘tuple’>. Please check that this function is defined properly.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.