Compute a forward-over-back Hessian-vector product.
(f, primals, tangents)
| 93 | |
| 94 | |
| 95 | def _hvp(f, primals, tangents): |
| 96 | """Compute a forward-over-back Hessian-vector product.""" |
| 97 | return _jvp(_grad(f), primals, tangents)[1] |
| 98 | |
| 99 | |
| 100 | def _test_gradients(testcase, |
no test coverage detected