EnzymeAD / EnzymeAD/Enzyme.jl

Active integer differentiation

Open
#73 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
586
Forks
108
Avg merge
1d 5h
Merged PRs (30d)
44

Description

I think `NamedTuple`s are allowed as `Active`s, but currently, we get (may be a known problem):

```julia
julia> autodiff(x -> x.a * x.b, Active((a = 2, b = 3)))
((a = 0, b = 0),)
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Julia REPL example with autodiff and Active on the NamedTuple. Trace how Enzyme handles Active NamedTuples and integer fields, then verify the fix by rerunning the example and confirming it produces the expected nonzero differentiation result.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.