EnzymeAD / EnzymeAD/Reactant.jl

`while` loop doesn't support repeated inputs in the loop

Open
#570 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.