C4W3 Autonomous_driving_application_Car_detection UNQ_C4

I passed the test for all the previous functions but the function 4 is failing giving me a value error
it refered to function 1 but it passed the test
here is the error
Code Cell UNQ_C4: Unexpected error (ValueError('operands could not be broadcast together with shapes (19,19,5,4) (19,19,5,80) '))

This is a fairly common stumbling block for people. If you mean yolo_eval, I added some print statements to my code and here is what I get for the test block for yolo_eval:

boxes.shape (19, 19, 5, 4)
boxes.dtype <dtype: 'float32'>
box_scores.shape (19, 19, 5, 80)
box_scores.dtype <dtype: 'float32'>
box_classes.shape (19, 19, 5)
box_classes.dtype <dtype: 'int64'>
box_class_scores.shape (19, 19, 5)
box_class_scores.dtype <dtype: 'float32'>
filtering_mask.shape (19, 19, 5)
filtering_mask.dtype <dtype: 'bool'>
scores[2] = 171.60194
boxes[2] = [-1240.3483 -3212.5881  -645.78    2024.3052]
classes[2] = 16
scores.shape = (10,)
boxes.shape = (10, 4)
classes.shape = (10,)
 All tests passed!

Try comparing your corresponding values and perhaps that will give some clue about where your code goes off the rails.

One other general thing worth pointing out is that just because your yolo_filter_boxes function passes the tests, that is not a guarantee of success. You could be calling it incorrectly: e.g. with the parameters or return values in the wrong order.

After printing out the shapes I was able to figure it out. Thanks for your help