Closed willtebbutt closed 1 year ago
You can't call Active
on a Vector, you need to use Duplicated
Hmmm I guess I should have known that, must have missed that in the docs.
Would be helpful to have a good error thrown if someone does this though
Duplicate of https://github.com/EnzymeAD/Enzyme.jl/issues/318, PR's welcome!
edit: I was doing something silly, but didn't realise, so this is more of a user-friendliness issue than anything else I guess.
Enzyme v0.11.0
MWE:
yields
I tried implementing my own summation function:
but, alas, it segfaults: