google / evojax

Apache License 2.0
826 stars 78 forks source link

[Discussion] Sequencing side-effects in JAX #69

Open vlainic opened 1 year ago

vlainic commented 1 year ago

Sequencing side-effects in JAX is a known issue in JAX. I have tried to make a custom operational env/task where the step update needs to be sequential.

JAX docs say one needs to tokenize the functions to force the sequence. However, I could not find any task in EvoJax with the tokens. Did anybody ever try that? Or I should think more and redesign my problem to make it more JAX compatible since I use a bunch of jax.lax.cond (constraints are quite complicated for the problem I have).