Skip to content

Defer bind with unboxed values to next interpreter #14647

Answered by femtomc
femtomc asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out how to do this - but I had to rewrite a few of my transformations to always use my own interpreter pattern (which always stages out to a Jaxpr, before walking -- so each transformation which uses this interpreter gets to see every primitive).

I'm not sure there's a general way to do it without doing this because (as mentioned in Autodidax - JAX has dataflow assumptions as an optimization, so I'm sort of breaking those assumptions so I had to go lower level and make my own interpreter stack -- this is totally okay for my use cases, however).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by femtomc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant