Enzyme.jl icon indicating copy to clipboard operation
Enzyme.jl copied to clipboard

Duplicated for `mutable` and `Dual` for forward.

Open vchuravy opened this issue 3 years ago • 2 comments

Right now the user can accidentally pass in Duplicated(1.0, 0.0) to autodiff, which is odd and surprising since duplicated is for the shadow storage loacation and 0.0 is immutable and can't be changed on the Julia semantics level. We should use a separate type e.g. Dual for forward diff.

vchuravy avatar Jan 27 '22 17:01 vchuravy

hey @vchuravy , Is this issue still pending? Can I work on it?

ayeankit avatar Mar 07 '24 13:03 ayeankit

Yes, it should be straightforward but will require updating the documentation in many places.

vchuravy avatar Mar 07 '24 16:03 vchuravy