user provided bound for torchtrt compile when export dimension is unb…#4213
Open
user provided bound for torchtrt compile when export dimension is unb…#4213
Conversation
4d1ff02 to
eec2c04
Compare
Collaborator
Author
|
CI index put cases failing. Looking at it. |
…ympy.oo in extract_var_range_info, validate Input against finite export bounds
…specialization artifact, unify bound-mismatch message templates
0fe114e to
2905ff6
Compare
…lders; sync assertions with refactored bound-mismatch messages
Collaborator
|
This PR is only for externally exported programs? |
Collaborator
Author
|
@narendasan yeah it addresses (torch_tensorrt.dynamo.compile(exported_program, ...)). The flow for torch_tensorrt.compile(model, inputs=..) should be unaffected, since in that case export bounds and input bounds should be same |
dee44b1 to
22728b3
Compare
narendasan
reviewed
May 7, 2026
Collaborator
narendasan
left a comment
There was a problem hiding this comment.
You should use the user bounds in the narrow case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR validates user bounds against any finite exporter bounds, with three branches: