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

[TensorRT EP] Fix bug for shape tensor input #18253

Merged
merged 8 commits into from
Nov 3, 2023
Merged

Conversation

chilo-ms
Copy link
Contributor

@chilo-ms chilo-ms commented Nov 2, 2023

When the model has "shape tensor" as one of the inputs and user provides explicit profile shapes for it, TRT EP doesn't correctly set the "shape tensor" input.
Also, there is a bug for applying explicit profile shapes for the shape tensor input.

Note: It seems the model has shape tensor input is a rare case. Most of the cases, the inputs are all execution tensor.

@chilo-ms chilo-ms requested a review from jywu-msft November 2, 2023 18:05
@chilo-ms chilo-ms changed the title [TensorRT EP] Fix bug for shape tensor [TensorRT EP] Fix bug for shape tensor input Nov 2, 2023
@chilo-ms chilo-ms closed this Nov 3, 2023
@chilo-ms chilo-ms reopened this Nov 3, 2023
@chilo-ms chilo-ms merged commit 84bdf04 into main Nov 3, 2023
97 of 102 checks passed
@chilo-ms chilo-ms deleted the chi/fix_shape_tensor branch November 3, 2023 23:07
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
When the model has "shape tensor" as one of the inputs and user provides
explicit profile shapes for it, TRT EP doesn't correctly set the "shape
tensor" input.
Also, there is a bug for applying explicit profile shapes for the shape
tensor input.

Note: It seems the model has shape tensor input is a rare case. Most of
the cases, the inputs are all execution tensor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants