Skip to content

Commit

Permalink
chore: reinstate repack
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaLGandhi committed Nov 11, 2024
1 parent 59c8068 commit 8b26c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gauss_adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ function vec_pjac!(out, λ, y, t, S::GaussIntegrand)
copyto!(vec(out), ReverseDiff.deriv(tp))
elseif sensealg.autojacvec isa ZygoteVJP
_dy, back = Zygote.pullback(tunables) do tunables
vec(f(y, tunables, t))
vec(f(y, repack(tunables), t))
end
tmp = back(λ)
if tmp[1] === nothing
Expand Down

0 comments on commit 8b26c43

Please sign in to comment.