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

[TRT] Add check to use setBindingDimensions if TRT>=6.0.1 #11178

Merged
merged 1 commit into from
May 2, 2022

Conversation

apivovarov
Copy link
Contributor

TRT Dynamic batching with use_implicit_batch=False uses nvinfer1::IExecutionContext::setBindingDimensions() which is not available before TRT 6.0.1.

This PR adds TRT version check around the code block which uses setBindingDimensions().

Related PR: #8461

@apivovarov
Copy link
Contributor Author

@comaniac @ziyu-guo This fix it is similar to #11154. Can you have a look?

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@comaniac comaniac merged commit 6e23e22 into apache:main May 2, 2022
@comaniac
Copy link
Contributor

comaniac commented May 2, 2022

Thanks @apivovarov

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