Week 3 assignment: zero grade

Hi I submitted the assignment and received 0 grade. I don’t understand why: my code passes the tests in the notebook and it doesn’t look too complicated (otherwise I’d think that it contains some tricky bugs which are detected by the server tests only). And the latest block with the network training works and generates the images as expected.
This is the feedback:

Sorry, your submission was incorrect. Please try again. Expecting value: line 1 column 1 (char 0)

That’s strange, but it passed when I submitted my work after a little while. Even though I didn’t change my code at all. I thought that I should train the network a little longer and submit again (it’s quite a long process so I cancelled it). But according to the the feedback, the submission tests do not verify the trained network:

Code Cell UNQ_C1: Function ‘get_gradient’ is correct.
Code Cell UNQ_C2: Function ‘gradient_penalty’ is correct.
Code Cell UNQ_C3: Function ‘get_gen_loss’ is correct.
Code Cell UNQ_C4: Function ‘get_crit_loss’ is correct.

Hey @gorev.pv,
I guess it could be an issue with the Coursera Server, since the problem was rectified itself.

Regards,
Elemento

Hey @gorev.pv,
Kindly let me know if this problem is solved?

Thanks,
Sharob

Yes, it’s solved)


Hi @sharob.sinha @Elemento ,

I encountered similar issue, only that this time grader output is:

Sorry, your submission was incorrect. Please try again. Invalid control character at: line 3290 column 44797 (char 5488638)

I’ve tried rebooting the server, but that didn’t help. What should I do?

Hey @terikihuan,
Apologies for the delayed response. Is your issue resolved yet?

Cheers,
Elemento

Same to me with a different message:
Cell #9. Can’t compile the student’s code. Error: AttributeError(“module ‘torch’ has no attribute ‘square’”,),
but all the tests were passed

passed replacing torch.square() by **2

1 Like

Hey @Juan_Fco_Alferez,
Welcome, and we are glad that you could become a part of our community :partying_face: Thanks for sharing your solution to the issue, I am sure that this will help many other learners.

Cheers,
Elemento

1 Like

I have similar issue. My code passed all the tests but after submission, I got following errors in 2 attempts so far. Nothing changed in the code between 2 attempts.

1st attempt:
Sorry, your submission was incorrect. Please try again. Expecting value: line 1 column 1 (char 0)

2nd attempt:
Sorry, your submission was incorrect. Please try again. Invalid control character at: line 2999 column 31459 (char 12042238)

Can someone please help?

It passed in 3rd attempt without changing any code.

I have an issue with this and I do not know why

Cell #4. Can’t compile the student’s code. Error: <HTTPError 403: ‘Forbidden’>

Is this only happening in one cell?

In my case, yes, just say that but I don’t have any errors when it runs

It could be that you’ve inadvertently edited something in cell #3 that’s throwing off the grader. See this post for more info:

Hope it helps :crossed_fingers:

A better explanation here: I can't get a grade. Can't compile the student's code - #2 by paulinpaloalto