EnzymeAD/Enzyme.jl

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

Aperta

#189 aperta il 27 gen 2022

 (2 commenti) (0 reazioni) (0 assegnatari)Julia (96 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (563 stelle)
Metriche merge PR
 (Merge medio 5g 1h) (76 PR mergiate in 30 g)

Descrizione

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.

Guida contributor