On Graded cell 5, I get All Testcases Passed!, but the grader is giving this error:
“Code Cell UNQ_C5: Unexpected error (TypeError(‘in user code:\n\n /tmp/student_solution_cells/cell_26.py:56 train_step *\n grad = tape.gradient(J, generated_image)\n /usr/local/lib/python3.7/site-packages/tensorflow/python/eager/backprop.py:1034 gradient **\n if not backprop_util.IsTrainable(t):\n /usr/local/lib/python3.7/site-packages/tensorflow/python/eager/backprop_util.py:30 IsTrainable\n dtype = dtypes.as_dtype(dtype)\n /usr/local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:650 as_dtype\n (type_value,))\n\n TypeError: Cannot convert value None to a TensorFlow DType.\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.”