lax.scan doesn't catch aliased mutable array refs the way jit does
lax.scan doesn't catch aliased mutable array refs the way jit does: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). lax.scan doesn't catch aliased mutable array refs the way jit does jax.jit already validates that you don't pass the same mutable array reference in twice, and…
The task
lax.scan doesn't catch aliased mutable array refs the way jit does jax.jit already validates that you don't pass the same mutable array reference in twice, and that a ref isn't both closed over and passed as an argument — you get a nice ValueError explaining what's wrong. But…
Part of XiaomiMiMo/MiMo-V2.6-RL-oss.