Enzyme-JAX icon indicating copy to clipboard operation
Enzyme-JAX copied to clipboard

Add support to raise an affine.for to stablehlo.while

Open snarang181 opened this issue 1 year ago • 2 comments

To currently support affine.for, there is a PR which does an unrolling pass https://github.com/EnzymeAD/Enzyme-JAX/pull/441. This is a temporary hack to lower a for op but long term, we should raise this to stablehlo.while with support for induction variables.

snarang181 avatar Mar 08 '25 04:03 snarang181

Marking as complete since https://github.com/EnzymeAD/Enzyme-JAX/pull/457 is merged.

snarang181 avatar Mar 11 '25 03:03 snarang181

not quite, that PR doesn't support iter_args yet

wsmoses avatar Mar 11 '25 04:03 wsmoses