You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I'm using the jax.array_ref here that I just found out today --- I naturally included it in this example because array_ref seems like would go well with hedrax!
Here's a blog post (part 1) https://people.csail.mit.edu/camyang/blog/2025/hedrax/, where I wrote a little bit more on the libraries' usage. There is also a compile_closed_form_indexer which also works for the above example like so:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi JAX community!
I implemented a small prototype library called HedraX to help with static shape indexing in JAX.
TLDR; it allows you to express static, but non-regtangularly shaped loop domains easily, using a set-like expression (Presburger arithmetic, islpy)
Example
With the library, you can express a loop like this one:
Using the following:
Note that I'm using the jax.array_ref here that I just found out today --- I naturally included it in this example because array_ref seems like would go well with hedrax!
Here's a blog post (part 1) https://people.csail.mit.edu/camyang/blog/2025/hedrax/, where I wrote a little bit more on the libraries' usage. There is also a
compile_closed_form_indexer
which also works for the above example like so:I'm sharing the idea here to get some feedbacks on improving the presentation and the library.
Beta Was this translation helpful? Give feedback.
All reactions