Programming Assignment: Conditional GAN

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.