EnzymeAD/Enzyme.jl

FixedpointNumbers.jl support

オープン

#109 opened on 2021/07/28

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (96 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (563 個のスター)
PR merge metrics
 (平均マージ 5d 1h) (30d で 76 merged PRs)

説明

using Enzyme
using FixedPointNumbers

f(x) = x^2
julia> autodiff(f, Active, Active(FixedPointNumbers.Q4f3(0.5)))
(0.0Q4f3,)

julia> FixedPointNumbers.Q4f3(1.0)
1.0Q4f3

julia> autodiff(f, Active, Active(0.5))
(1.0,)

x-ref: https://github.com/wsmoses/Enzyme/issues/158#issuecomment-797638987

コントリビューターガイド