EnzymeAD / EnzymeAD/Reactant.jl
`while` loop doesn't support repeated inputs in the loop
Open
bug
control flow
- Dominant language
- Julia
- Stars
- 370
- Forks
- 74
- Avg merge
- 18h 47m
- Merged PRs (30d)
- 30
Description
```julia
function for_with_named_tuple(x)
st = (; x)
res = x
@trace for i in 1:10
res .= res .+ st.x
st = (; x=st.x .+ 1)
end
return res
end
```
This will create an invalid IR. We need to give it a similar treatment as `if` in https://github.com/EnzymeAD/Reactant.jl/pull/565/.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.