Hello I have passed all the tests in the assignment but when I submit it, I get the following error:
“Cell #4. Can’t compile the student’s code. Error: AssertionError()”
Does anyone know what’s happening here ?
Hello I have passed all the tests in the assignment but when I submit it, I get the following error:
“Cell #4. Can’t compile the student’s code. Error: AssertionError()”
Does anyone know what’s happening here ?
Hi, Aman.
If everything runs correctly in the notebook, then it must be the case that there is something in your code that is not general. It works locally, but fails with different inputs from the grader. Unfortunately we don’t get much info from that error message. Please have a look at the code in the 4th code cell to see if you can see anything that might not be general. E.g. perhaps you are referencing a global variable or hard-coding the device setting or the like. Note that the notebooks run on “cuda”, but the grader runs in “cpu” mode to save $$$ with Coursera.