Deep Learning Specialization - Convolutional Neural Network - Programming assignment- Transfer_learning_with_MobileNet_v2

Programming assignment- Transfer_learning_with_MobileNet_v2

I completed all tasks in the program correctly with the result ‘All tests passed’, however, when I submit it for grading, the grader gives me 0 points due to the following error:
'Cell #7. Can’t compile the student’s code. Error: AttributeError(“‘NoneType’ object has no attribute ‘add’”.
Please help me as my entire notebook is correct. I have no idea what to do. I restart the kernel and use the latest version as well, but the same error persist.

Thanks a lot.

Have you posted this question in the correct forum area?

This thread is in the “Generative AI with LLM” area, but the question is for the “Deep Learning Specialization”.

You can move your thread to the correct area using the “pencil” icon in the thread title.

Thanks a lot for the feedback. I’ve just move it to the correct area.



There are several things that can cause your notebook to give a grade of 0.

First, did you ever download the notebook and work on it in some other platform, and then upload it back to Coursera for grading?

If you’re sure that all the cells in the network run successfully when you run it yourself, but get this error from the grader, there are a couple of possible theories:

  1. As Tom described, you might have corrupted the notebook somehow. One way to do that would be running it on a different platform like Colab.
  2. There could be some way in which your code is not “general”. For example, referencing global variables instead of the parameters passed to your functions. Maybe one of those is not defined in the grader context, which is where that error about “Nonetype” object is coming from.