A number of smoother algorithms reverse the inputs and then run them through jax.lax.scan. From my understanding, this creates additional array copies in memory, so it would be an enhancement to use this keyword argument. I suspect this is because the reverse=True argument did not exist at the time of implementation.
Good catch, @edeno! I just checked and it looks like we only used the reverse kwarg in the parallel inference code. If you want to submit a PR to use reverse in the other code paths, that would be amazing!
A number of smoother algorithms reverse the inputs and then run them through
jax.lax.scan
. From my understanding, this creates additional array copies in memory, so it would be an enhancement to use this keyword argument. I suspect this is because thereverse=True
argument did not exist at the time of implementation.Happy to add a PR if this is indeed an issue.