MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _hvp

Function _hvp

tensorflow/python/eager/forwardprop_test.py:95–97  ·  view source on GitHub ↗

Compute a forward-over-back Hessian-vector product.

(f, primals, tangents)

Source from the content-addressed store, hash-verified

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

Callers 2

testHVPMemoryMethod · 0.85
testHVPCorrectnessMethod · 0.85

Calls 2

_jvpFunction · 0.85
_gradFunction · 0.70

Tested by

no test coverage detected