Vmap of Python Lists and JAX StringArray #14577
-
Hello JAX Community; To vectorize data loading process in a typical data-loader, I wanted to use
When I try to vectorize it, I faced Is there any other solution to vectorize Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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 callload()
in parallel, but rather by your computers ability to physically read data from the disk in parallel.