The grader gives me 80%, meanwhile when I run all the cells gives me no errors.
This shows in the grader output:
Code Cell UNQ_C5: Unexpected error (NameError(‘in user code:\n\n File “/tmp/student_solution_cells/cell_26.py”, line 50, in train_step *\n J_content = compute_content_cost(a, a_G)\n\n NameError: name 'a' is not defined\n’)) occurred during function check. We expected function train_step to return train_step test 1 failed. Please check that this function is defined properly.
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.
Did you perhaps rename your ipynb notebook file name? You can’t grade a renamed notebook, because the grader always uses the file with the original name.
Maybe you added an extra cell or duplicated that cell and used a instead of a_C there. Or maybe, previously you wrote a and then changed it to a_C but forget to run the cell? Try this: press Ctrl + f and find J_content = compute_content_cost, maybe you get something.