Skip to content

Is jit(f).lower() supposed to be callable inside jit? #14267

Answered by mattjj
SJSeckmeyer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question!

Producing such a bad error message is certainly a bug, but I believe the answer is no, .lower should only be used at "top-level" (i.e. not underneath jax.jit or any other JAX transformation or staging mechanism).

@froystig can you correct me if I'm wrong, and also think about how we might improve the error message?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mattjj
Comment options

@froystig
Comment options

@SJSeckmeyer
Comment options

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