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

how this model supports dynamic batch using tensorRT? #16

Open
mmx110 opened this issue Oct 13, 2023 · 1 comment
Open

how this model supports dynamic batch using tensorRT? #16

mmx110 opened this issue Oct 13, 2023 · 1 comment

Comments

@mmx110
Copy link

mmx110 commented Oct 13, 2023

Thanks, It's a great project. How this model to support dynamic batch. I set the model input first dim -1, and change code to create engine of tensorRT with method of dynamic shape . but I get error " [executionContext.cpp::validateInputBindings::1838] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::validateInputBindings::1838, condition: profileMaxDims.d[i] >= dimensions.d[i]. Supplied binding dimension [2,512,512,3] for bindings[0] exceed min ~ max range at index 0, maximum dimension in profile is 1, minimum dimension in profile is 1, but supplied dimension is 2" during inference .

@bychen7
Copy link
Owner

bychen7 commented Oct 26, 2023

@mmx110 Sorry for the delayed response, implementing dynamic batching requires making changes to the code. You can refer to
Working with Dynamic Shapes for guidance.

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

No branches or pull requests

2 participants