Skip to content

Commit a174071

Browse files
Update src/config.jl
1 parent b966b9b commit a174071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ This constructor does not store/modify `x`.
301301
function HessianConfig(f::F,
302302
result::DiffResult,
303303
x::AbstractArray{V},
304-
chunk::Chunk,
305-
tag) where {F,V}
304+
chunk::Chunk = Chunk(x),
305+
tag = Tag(f, V)) where {F,V}
306306
jacobian_config = JacobianConfig((f,gradient), DiffResults.gradient(result), x, chunk, tag)
307307
gradient_config = GradientConfig(f, jacobian_config.duals[2], chunk, tag)
308308
return HessianConfig(jacobian_config, gradient_config)

0 commit comments

Comments
 (0)