I'm getting error in C4_W2 assignment Transfer_learning_with_MobileNet_v1

My code passes all the tests and seems to work correctly, I did not change any cells except graded ones. But autograder keeps printing this error : Cell #9. Can’t compile the student’s code. Error: IndentationError(‘unexpected indent’, (‘/tmp/student_solution_cells/cell_9.py’, 11, 1, ’ preprocess_input = tf.keras.applications.mobilenet_v2.preprocess_input\n’))

Did someone have this, what should I do?

Do you know what unexpected indent means, it means that that line of code is not in the right indentation! Perhaps if not that line, some other line of code upwards or downwards!

You should check the indentation at this point!

2 Likes

Found inconvenience in my code, now everything works, thank you so much!

2 Likes

Good, for other who might have similar problems, keep in mind as the comments suggest to use tf.math.reduce_sum!