[MaxIters(N)] causes variables to not be saved for backwards pass #6048
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
Milestone
This is possibly related to #6039, with similar behavior but a different trigger. Using
[MaxIters]
in the following example causes the parametercontext
ofstore
to not be saved during primal execution.write_bwd
in the backwards pass only sees a value of0
foridx[0]
and reads from the wrong memory location. Replacing[MaxIters]
with[ForceUnroll]
fixes the issue.The text was updated successfully, but these errors were encountered: