# UNQ_C2 # GRADED FUNCTION: compute_gradient 22

Hi guys greeting, I am facing an issue # UNQ_C2 call is working properly but I cannot run the implementation of the compute_gradient call.

There is an error in your code in the compute_gradient() function for computing dj_db.

Hello @Ch_Venkatesh66,

This is from your screenshot:

image

This is from the notebook:

image

It appears that they are just swapped. The last line of the exercise is supposed to be

return dj_dw, dj_db

Did you swap it? If so, you only need to swap it back.

Cheers,
Raymond

Your dj_dw value doesn’t match the test input. Try correcting the logic implemented in the compute_gradient function.
Thanks