This is an assignment of a class.
gradcheck_naive(quad, np.random.randn(3,))
The picture is about the function above.
I have simplified the code.
I know the meaning of random.getstate() and random.setstate(state).
But I don't know why I need to call them in this case: the value of x has been passed in and there is no other place where I use a random value in this function.
Aucun commentaire:
Enregistrer un commentaire