C4_W4_A2 80/100 Function 'train_step' is incorrect

Hi there everyone. I completed Assignment 2 and my code passed all notebook test cases however the grader output says that my implementation for exercise 6: train_step() is incorrect. Here’s the grader output:

Code Cell UNQ_C1: Function ‘compute_content_cost’ is correct.
Code Cell UNQ_C2: Function ‘gram_matrix’ is correct.
Code Cell UNQ_C3: Function ‘compute_layer_style_cost’ is correct.
Code Cell UNQ_C4: Function ‘total_cost’ is correct.
Code Cell UNQ_C5: Function ‘train_step’ is incorrect. Check implementation.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Could someone please help me resolve this?

Have you started by carefully comparing your code to the instructions for that section? There aren’t that many moving parts here and they give you pretty complete instructions and hints in the comments about what you need to do.

1 Like