Doing Deeplearning Courses on Coursera, and now this happened

But I passed all tests in the notebook. Is this normal?

Hello, please add your issue on the Course Q&A specific for the course. And let us know which course you are having issues with and th elink to the item .

As the Community Team has mentioned, it would help a lot to know specifically what course and assignment is involved here.

But yes, we do see this type of error pretty frequently. It typically means one of two things:

  1. You’ve made some kind of “hard-coding” mistake meaning that you’ve written your solution in such a way that it is not general: it works for the one specific test case in the notebook, but fails a different test from the grader.
  2. There is something structural wrong with your notebook. E.g. you’ve removed cells or added cells or maybe directly edited the JSON source code.

If you look through and can’t find any instances of case 1) (non-general code), then it’s worth getting a fresh clean copy of the notebook (see instructions here) and then carefully copy/pasting over just your solution lines from the “YOUR CODE HERE” sections. Then try submitting again and let us know if it still fails or not. That’s the first thing to try if the theory is case 2).