I have a problem about test code of HW1 question2. In gradient_check() function, out.backward() needs to call compute_gradient_of_variables() function which is implemented in question4. How to verify code in question2 without implementation of compute_gradient_of_variables() ? I am confused.
I have a problem about test code of HW1 question2. In
gradient_check()
function,out.backward()
needs to callcompute_gradient_of_variables()
function which is implemented in question4. How to verify code in question2 without implementation ofcompute_gradient_of_variables()
? I am confused.