Code runs succesfully with All tests pass but grader does not approves

Code Cell UNQ_C1: Unexpected error (AttributeError("‘NoneType’ object has no attribute ‘shape’")) occurred during function check. We expected function yolo_filter_boxes to return yolo_filter_boxes test 1 failed. Please check that this function is defined properly.
Code Cell UNQ_C2: Unexpected error (TypeError(“ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’”)) occurred during function check. We expected function iou to return iou test 1 failed. Please check that this function is defined properly.
Code Cell UNQ_C3: Unexpected error (AttributeError("‘NoneType’ object has no attribute ‘shape’")) occurred during function check. We expected function yolo_non_max_suppression to return yolo_non_max_suppression test 1 failed. Please check that this function is defined properly.
Code Cell UNQ_C4: Unexpected error (TypeError(‘cannot unpack non-iterable NoneType object’)) occurred during function check. We expected function yolo_eval to return yolo_eval 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.

Are you sure you did a “Save” before you submitted your notebook to the grader? You might want to do this sequence:

Kernel → Restart and Clear Output
Cell → Run All

Now scan through and make sure everything ran correctly. If so, then do:

Kernel → Restart and Clear Output
Save
Submit to grader

and see what happens. The errors from the grader make it sound like there is some incomplete code that you did not fill in, but there are some cases in which the grader does not do an automatic “Save” for you. Also do you reference the primitive isfinite anywhere in your code? That should not be necessary.

Yes, I did.
Thanks lot for answering but I guess the assignment was not updated in my case so I went to Help and clicked a button there and the assignment updated then I did it back from scratch and everything worked well.