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

Commit 98d1e05

Browse files
Update compute_jacobian_ad.jl
1 parent fd6c5c6 commit 98d1e05

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
@@ -31,7 +31,7 @@ function ForwardColorJacCache(f,x,_chunksize = nothing;
3131
end
3232

3333
p = adapt.(typeof(x),generate_chunked_partials(x,colorvec,chunksize))
34-
t = reshape(Dual{ForwardDiff.Tag(typeof(f),typeof(vec(x)))}.(vec(x),first(p)),size(x)...)
34+
t = reshape(Dual{ForwardDiff.Tag(f,vec(x)}.(vec(x),first(p)),size(x)...)
3535

3636
if dx isa Nothing
3737
fx = similar(t)

0 commit comments

Comments
 (0)