Skip to content

Scope for disabling omnistaging? #4945

Answered by mattjj
machineko asked this question in Ideas
Discussion options

You must be logged in to vote

There is such a function, but it's an internal API function, and we might break it in the future. I don't want to cause you more headaches!

As you may have seen in the omnistaging upgrade guide, oftentimes if you import numpy as np and import jax.numpy as jnp, for code you don't want to stage out it can be a better idea to use np rather than jnp. That is, you can control what gets staged out to XLA simply by only using jnp for things that you might want to stage out.

Would that work? Otherwise, can you provide an example?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@machineko
Comment options

@tshadley
Comment options

Answer selected by machineko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants