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

Corrects resize validation for dynamic shapes #561

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

pranavm-nvidia
Copy link
Collaborator

When the output dimensions are dynamic and the output_shape parameter has not been provided, resize requires scales to be present. The previous checks were erroneously reporting errors if the input dimensions were dynamic, even though this is actually supported by TensorRT.

Also cleans up several error messages to be clearer.

@pranavm-nvidia pranavm-nvidia force-pushed the fix-resize-checks branch 2 times, most recently from 7acb20a to 8bdf54f Compare March 6, 2025 20:42
Copy link
Collaborator

@christopherbate christopherbate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Verified

This commit was signed with the committer’s verified signature.
When the output dimensions are dynamic and the `output_shape` parameter
has not been provided, resize requires `scales` to be present. The previous
checks were erroneously reporting errors if the input dimensions were dynamic,
even though this is actually supported by TensorRT.

Also cleans up several error messages to be clearer.
@pranavm-nvidia pranavm-nvidia merged commit ae826ef into main Mar 18, 2025
1 check passed
@pranavm-nvidia pranavm-nvidia deleted the fix-resize-checks branch March 18, 2025 16:43
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.

None yet

2 participants