Active integer differentiation
Open
- 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
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