UNQ_C1 Grader Error

All code executed successfully in jupyter notebook ,but after i submit assinment

Code Cell UNQ_C1: Unexpected error (TypeError(‘Can not convert a NoneType into a Tensor or Operation.’,)) occurred during function check. We expected function grad_cam to return type <class ‘numpy.ndarray’>. Please check that this function is defined properly.

Did you happen to re-name the notebook file?

1 Like


I think i did not

Sorry,I found i did not use function parameter ‘input_model’ in my code , I used the global variable ‘model’ ,so this error occurs.

@gerry_liang

Thanks for informing us.

Regards.

–Jaidev