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

[Torch] improve TensorRT fallback & dynamic #177

Closed
wants to merge 4 commits into from
Closed

Conversation

tanyokwok
Copy link
Collaborator

@tanyokwok tanyokwok commented Mar 21, 2022

This pull request mainly improves dynamic shape optimization and fallback of TensorRT.

Previously, we only support user configuration of dynamic shapes by setting min/max/opts shapes, which are lists of ints.
And TorchBlade will automatically generate test data according to the input shapes. With the test data, TorchBlade can trace the intermediate tensors' shapes and data types which is valuable to the optimization.

  1. In this PR we would like to support inferencing dynamic shape setting with user input test data. Because some network's computations could be different according to different inputs, such as detection and decoder networks. And a randomly generated test data might output empty results.

  2. In this PR we improve the fallback performance of TensorRT as well.

  3. In this PR we added some debug utilities.

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