Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't plant into scan in append mode #70

Open
jkramar opened this issue Mar 29, 2024 · 0 comments
Open

Can't plant into scan in append mode #70

jkramar opened this issue Mar 29, 2024 · 0 comments

Comments

@jkramar
Copy link

jkramar commented Mar 29, 2024

Here's an example:

def body(carry, _):
  return harvest.sow(carry, name='x', mode='append', tag='tag'), None


harvest.plant(lambda x: jax.lax.scan(body, x, None, 5), tag='tag')({'x': 1}, 1)

This crashes with an IndexError: list assignment index out of range. The equivalent snippet with mode='clobber' works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant