EnzymeAD/Enzyme.jl

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

開放

#189 建立於 2022年1月27日

 (2 則留言) (0 個反應) (0 位負責人)Julia (96 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (563 顆星)
PR 合併指標
 (平均合併 5天 1小時) (30 天內合併 76 個 PR)

描述

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.

貢獻者指南