EnzymeAD/Enzyme.jl

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

Open

#189 opened on Jan 27, 2022

 (2 comments) (0 reactions) (0 assignees)Julia (96 forks)batch import
good first issuehelp wanted

Repository metrics

Stars
 (563 stars)
PR merge metrics
 (Avg merge 5d 1h) (76 merged PRs in 30d)

Description

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.

Contributor guide