Skip to content

Commit

Permalink
Fix Holomorphic tests
Browse files Browse the repository at this point in the history
Eventually, `recursive_accumulate` should be rewritten on top of a new
`VectorSpace` wrapper built on `recursive_map`. Until then, this will
do.
  • Loading branch information
danielwe committed Oct 31, 2024
1 parent b3f7426 commit 1778ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,10 @@ Enzyme.autodiff(ReverseWithPrimal, x->x*x, Active(3.0))
# compute the correct complex derivative in reverse mode by propagating the conjugate return values
# then subtracting twice the imaginary component to get the correct result

for (k, v) in seen
for (k, (v,)) in seen
Compiler.recursive_accumulate(k, v, refn_seed)
end
for (k, v) in seen2
for (k, (v,)) in seen2
Compiler.recursive_accumulate(k, v, imfn_seed)
end

Expand Down

0 comments on commit 1778ebe

Please sign in to comment.