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

Error when the for i loop don't start with 0 #16

Open
riiswa opened this issue Dec 21, 2023 · 2 comments
Open

Error when the for i loop don't start with 0 #16

riiswa opened this issue Dec 21, 2023 · 2 comments

Comments

@riiswa
Copy link

riiswa commented Dec 21, 2023

I got the following error when the for i loop don't start with 0:

jaxlib.xla_extension.XlaRuntimeError: INTERNAL: Generated function failed: CpuCallback error: KeyError: 0

My code snippet: jax.lax.fori_loop(1, config.timesteps + 1, env_step, train_state)

@riiswa
Copy link
Author

riiswa commented Dec 21, 2023

I didn't find a clean/immutable way to fix the problem :/

@zombie-einstein
Copy link
Collaborator

zombie-einstein commented Dec 29, 2023

Think this is the same issue as this #12 , comments there may help you

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

2 participants