C3W1 Practice Assignment

Completed W1 assignment but practice assignment won’t work.

1st error: There was a problem compiling the code from your notebook. Details:
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (8000,) + inhomogeneous part.

After making some corrections:

2nd error: There was a problem compiling the code from your notebook. Details:
Failed to convert a NumPy array to a Tensor (Unsupported object type int).

Please advise.

Has any one encounter this issue as well? Plz share how we can solve it.


Share image of the errors you are getting without sharing any codes. So NLP mentors can response @arvyzukai

1 Like

Hello @Josh_Haber Josh,

The first question seeing your error log, we would like to know if you updated your lab and using the latest version of assignment because as per your grader output seems like you are using an old copy of assignment.

@Jawad if you have similar grader output as Josh, then kindly follow the same steps as told to Josh.

I am sharing an updated assignment grader output for comparison as you can see your grader cells differ from mine.

Kindly do the following to get a fresh copy of assignment.

  1. Click File==== then open==== delete all the files on this page. Now you will find a 404 error on your web page.
  2. Ensure you have deleted all your cache and browser history before you download a fresh copy. Log out of your Coursera account.
  3. Re-Login.
  4. Click Help on the right top corner, then reboot.
  5. Once rebooting is done, click help again. At this time, click Get the Latest version and then Update Lab.
    You have a fresh updated copy of the assignment.

Re-do your assignment.

Make sure for Course 3 and course 4 always check if you have the latest version of assignment before you start to do assignment as both courses of NLP was recently updated.

Let us know if you have any issue with the above steps.


Thank you will try that now

Right brother