Skip to content

Vmap of Python Lists and JAX StringArray #14577

Answered by jakevdp
GoktugGuvercin asked this question in Q&A
Discussion options

You must be logged in to vote

There is not really any way to do what you have in mind – JAX doesn't support operations on strings. There are mechanisms you can use to refer to arrays of string data using JAX constructs (see for example the StringArray implementation in #12329) but they won't help you in your goal of vectorizing file loading, because file loading is not limited by your ability to call load() in parallel, but rather by your computers ability to physically read data from the disk in parallel.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GoktugGuvercin
Comment options

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