Transformers Architecture with TensorFlow Assignment issue

When creating a post, please add:

  • Week # 4
  • Link to the classroom item you are referring to: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  • Description:
    Today when I started doing the notebook, in every graded cell in the notebook it was written:
    #UNQ_C1 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C2 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C3 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C4 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C5 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C6 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C7 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)
    #UNQ_C8 (UNIQUE CELL IDENTIFIER, DO NOT EDIT)

when I tried submitting without editing anything, it gave me an error:
Cell #4. Can’t compile the student’s code. Error: AssertionError(‘You must return a numpy ndarray’)

Hi @MKashif724

The error is not about editing cells. Make sure that your function returns numpy array not simple list, tuple, etc.

Hope it helps! Feel free to ask if you need further assistance.

That message means to NOT edit the comment line that has the “UNQ_C?” text. That’s a tag that the grader requires.

You should modify each of those cells, where it is marked for your code.