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

Commit 8878eaf

Browse files
fix in-place nesting
1 parent f4954e7 commit 8878eaf

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
@@ -40,7 +40,7 @@ function ForwardColorJacCache(f,x,_chunksize = nothing;
4040
else
4141
tup = ArrayInterface.allowed_getindex(ArrayInterface.allowed_getindex(p,1),1) .* false
4242
_pi = adapt(parameterless_type(dx),[tup for i in 1:length(dx)])
43-
fx = reshape(Dual{ForwardDiff.Tag(f,eltype(vec(x)))}.(vec(dx),_pi),size(dx)...)
43+
fx = reshape(Dual{typeof(ForwardDiff.Tag(f,eltype(vec(x))))}.(vec(dx),_pi),size(dx)...)
4444
_dx = dx
4545
end
4646

0 commit comments

Comments
 (0)