(func, input, eps = 1e-3, atol = 1e-3, rtol = 1e-3)
| 46 | return NJ |
| 47 | |
| 48 | def gradcheck(func, input, eps = 1e-3, atol = 1e-3, rtol = 1e-3): |
| 49 | NJ = numerical_jacobian(func, input, eps) |
| 50 | J = jacobian(func, input) |
| 51 | return np.allclose(J, NJ, atol = atol, rtol = rtol) |
searching dependent graphs…