Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 2d05574

Browse files
committed
Keep restructure logic unchanged for now
1 parent 061108f commit 2d05574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentiation/compute_jacobian_ad.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function ForwardColorJacCache(f::F, x, _chunksize = nothing;
4444
p = adapt.(parameterless_type(x), generate_chunked_partials(x, colorvec, chunksize))
4545
_t = Dual{T, eltype(x), getsize(chunksize)
4646
}.(vec(x), ForwardDiff.Partials.(first(p)))
47-
t = ArrayInterface.restructure(similar(x, eltype(_t)), _t)
47+
t = ArrayInterface.restructure(x, _t)
4848
end
4949

5050
if dx isa Nothing

0 commit comments

Comments
 (0)