Gradient function for InputFn.
(theta, state0, inputs, extras, dstate1)
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected