Course 1 Week 2 Assignment Submission failure

I have all the codes ready. I also got the expected results as stated in the practice lab. However, it keeps saying “Code Cell UNQ_C1: Function ‘compute_cost’ is incorrect. Check implementation.
Code Cell UNQ_C2: Function ‘compute_gradient’ is incorrect. Check implementation.”
I got “All tests passed!” all the way.
Could you please advise? Thanks a lot

The grader tests your code using a different set of data, and in a different environment. It seems that your code only works with the tests that are provided in the notebook.

Check your code further and verify that it will work for any set of data parameters.

Another common issue can happen if you have renamed your copy of the notebook file. The grader expects that you will not change the file name.