Skip to content

Commit dac5c53

Browse files
Update src/config.jl
1 parent 60df8f8 commit dac5c53

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
@@ -279,8 +279,8 @@ This constructor does not store/modify `x`.
279279
"""
280280
function HessianConfig(f::F,
281281
x::AbstractArray{V},
282-
chunk::Chunk,
283-
tag) where {F,V}
282+
chunk::Chunk = Chunk(x),
283+
tag = Tag(f, V)) where {F,V}
284284
jacobian_config = JacobianConfig(f, x, chunk, tag)
285285
gradient_config = GradientConfig(f, jacobian_config.duals, chunk, tag)
286286
return HessianConfig(jacobian_config, gradient_config)

0 commit comments

Comments
 (0)