Closed kiranshila closed 5 months ago
I think this has to do with https://enzymead.github.io/Enzyme.jl/dev/faq/#Activity-of-temporary-storage, but the function itself doesn't accept temporary storage, so I'm not sure if it applies.
@kiranshila what version of Enzyme/Julia are you on, and what would be the correct/intended output here?
My mistake, I must have had a Julia in a weird state, I get the correct output on a fresh session. Apologies!
I'm working on a relatively complex function, and I am getting a gradient of all zeros both Forward and Reverse mode. I think this is a bug, as ForwardDiff yields correct results. There might be something with all the in-place mutation, but I'm not sure.
Here's the code: