Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could OpenXLA support input dynamic shape? #21126

Open
jinjidejinmuyan opened this issue Jan 8, 2025 · 1 comment
Open

Could OpenXLA support input dynamic shape? #21126

jinjidejinmuyan opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
question Further information is requested stat:awaiting response from contributor Awaiting response from contributor/author

Comments

@jinjidejinmuyan
Copy link

I want to know that Could OpenXLA support input dynamic shape?
For example, I have an input tensor with a dynamic dimension. TensorRT’s approach is to specify the minimum, optimal, and maximum values for this dynamic dimension of the input. Does OpenXLA have a similar feature?
Thank you for your reply.

@aniruthraj aniruthraj self-assigned this Feb 19, 2025
@aniruthraj aniruthraj added the question Further information is requested label Feb 19, 2025
@aniruthraj
Copy link

aniruthraj commented Feb 20, 2025

Hi @jinjidejinmuyan,

Yes, OpenXLA does support input dynamic shape. Dynamic dimensions in OpenXLA are represented by ?(e.g., tensor<16x?xf32>). A key feature is bounded dynamism, whose value has a known upper bound(similar to TensorRT's max value). We can represent bounded dynamism using we represent bounded dynamism using #stablehlo.bounds. OpenXLA also supports unbounded dynamism, which refers to a dynamic dimension with no known bound. However, 'min' and 'optimal' values are not explicitly handled by OpenXLA. Please refer to this documentation for more information on dynamism in OpenXLA.

Thank you!

@aniruthraj aniruthraj added the stat:awaiting response from contributor Awaiting response from contributor/author label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stat:awaiting response from contributor Awaiting response from contributor/author
Projects
None yet
Development

No branches or pull requests

2 participants