Replies: 1 comment
-
This is really a question about the XLA dynamic padder, not JAX; while the documentation on the feature is lacking, you might find something useful in the tests. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been reading https://jax.readthedocs.io/en/latest/notebooks/XLA_in_Python.html and have some working code, but the tutorial only shows examples where the number of rows (/observations/samples) is constant. How do I compile a function where one dimension is dynamic?
I though it might be connected to "dynamic dimensions", but when I use for example:
I get
Invalid argument: Executable expected shape f32[<=4,3]{1,0} for argument 0 but got incompatible shape f32[4,3]{1,0}
which seems odd to me since 4 <= 4..
I have tried with xops.Map over a computation and without, but I can't get it to work.Do I really have to compile a new function depending on number of rows in input? Is the "dynamic dimensions" thing a red herring?
Beta Was this translation helpful? Give feedback.
All reactions