From 1778ebeb74c7b4341cd7d9287283d8493606a3d5 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Thu, 31 Oct 2024 14:30:17 -0700 Subject: [PATCH] Fix Holomorphic tests Eventually, `recursive_accumulate` should be rewritten on top of a new `VectorSpace` wrapper built on `recursive_map`. Until then, this will do. --- src/Enzyme.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Enzyme.jl b/src/Enzyme.jl index 2e8643744b..64f6c0be20 100644 --- a/src/Enzyme.jl +++ b/src/Enzyme.jl @@ -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