Grader problem Course 4 Week 2

I can run everything in the notebook. However, when I submit to the grade I get “Cell #UNQ_C2. Can’t compile the student’s code. Error: IndentationError(‘unexpected indent’, (’/tmp/student_solution_cells/’, 35, 51, ’ include_top=False,\n’))”

Is cell_15 just the 15th count?

After you run the notebook, the cell numbers appear to the left of each executable cell.

1 Like

Just taking a guess, but the “can’t compile” error often means your copy of the notebook is out-of- date. Check the “Help” menu to see if a newer version is available.

Before you update your notebook, be sure you save it so your code doesn’t get overwritten.

1 Like

I updated the worksheet and it didn’t correct the problem. I then moved all of the code to a single line and it fixed that problem. Now I get

Cell #16. Can’t compile the student’s code. Error: ValueError(‘Input 0 of layer global_average_pooling2d_4 is incompatible with the layer: expected ndim=4, found ndim=2. Full shape received: [None, 1000]’)

To fix the problem, I saved a copy, reverted the notebook and then just typed what was in the old notebook in the new notebook.