We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5b7c4 commit b9ff025Copy full SHA for b9ff025
src/Nonlinear/ReverseAD/forward_over_reverse.jl
@@ -101,7 +101,6 @@ function _eval_hessian_chunk(
101
d.input_ϵ[(idx-1)*CHUNK+s] = ex.seed_matrix[r, offset+s-1]
102
end
103
104
- fill!(d.output_ϵ, 0.0)
105
_hessian_slice_inner(d, ex, Val(CHUNK))
106
fill!(d.input_ϵ, 0.0)
107
# collect directional derivatives
@@ -118,6 +117,7 @@ end
118
117
function _hessian_slice_inner(d, ex, ::Val{CHUNK}) where {CHUNK}
119
T = ForwardDiff.Partials{CHUNK,Float64} # This is our element type.
120
input_ϵ = _reinterpret_unsafe(T, d.input_ϵ)
+ fill!(d.output_ϵ, 0.0)
121
output_ϵ = _reinterpret_unsafe(T, d.output_ϵ)
122
subexpr_forward_values_ϵ =
123
_reinterpret_unsafe(T, d.subexpression_forward_values_ϵ)
0 commit comments