Programming Assignment: Conditional GAN


I completed the assignment, but always get 0 grade. Could you help me see why?

I think I got the correct answers.

Hi @Hao_Liu56

Welcome to the community.

Please, move your queries to the properly discussion space. It would be more easy, to us mentors, to track then.


Hi Hao_Liu!

Welcome to the community. I have moved your post this time but as @elirod mentioned please make sure that you choose the correct tags so that you post it in the appropriate space from the next time.

Coming to your issue, what’s the grader’s response?


i can see the output like this:

Did you add any new cells and forgot to delete the additional cells created by you before submitting? Or did you modify any cell that you are not supposed to modify?


I checked again, I didn’t find any additional cells or modified cells

Could you help me see why?

That error message suggests that something is fundamentally wrong at a structural level with your notebook file. Did you download it, work on it with another platform (e.g. Colab) and then reupload it to the Coursera website? If so, that would cause this type of issue.

There are a couple of things I can suggest to try:

First do “Kernel → Restart and Clear Output”, “Save” and then “Submit” again and see if that helps. Note that running the notebook generates quite a bit of output and sometimes the grader has trouble if the memory image is too large. The grader does not need to see any of your output: just your actual functions.

If that doesn’t help, then I think the next step is to get a fresh copy of the notebook using this procedure. Then carefully “copy/paste” over just your completed code from the “YOUR CODE HERE” sections and see if that helps.

Thank you very much!

I fixed it by restarting the kernel, it looks like the reason is the memory image is too large.

That’s great news that the simplest solution worked! Thanks for confirming. That will help other students who hit this issue in the future.