Skip to content
Discussion options

You must be logged in to vote

In general, the strategy for handling dynamic array sizes in JAX is, depending on the situation, to either dispatch a new JIT-compiled operation for each size, or to pad all entries to a maximum size. In practice, the extra calculations done in the padding strategy may not be as important as you fear, especially if you're running on an accelerator like GPU or TPU.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@doctor-phil
Comment options

@jakevdp
Comment options

@doctor-phil
Comment options

@jakevdp
Comment options

Answer selected by dfdx
@dfdx
Comment options

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