I do not know why I am getting this error. I thought that propagate returns grads and cost and am having a hard time understanding why this is not working. It eventually becomes nan after 4 iterations and then stays nan thereafter.
Any help is appreciated! I have spent an hour on this error and feel like I am going insane over one line of code.