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

[inference][trt]handle trt engine deserialization failure and rebuild #50775

Merged

Conversation

zhangjun
Copy link
Contributor

@zhangjun zhangjun commented Feb 22, 2023

PR types

Others

PR changes

Others

Describe

  • Handle trt engine deserialization failure and fallback to rebuild
    • For example, if the engine produced from TRT 8.4.2.4, and deserialized using TRT 8.5.1.7,it will throw exceptions

      image
    • This PR will catch exceptions and rebuild the TRT engine.

      image

Copy link
Contributor

@jiweibo jiweibo left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangjun zhangjun merged commit 377cbce into PaddlePaddle:develop Feb 27, 2023
@zhangjun zhangjun deleted the trt-engine-deserialization-opt branch February 27, 2023 09:32
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.

3 participants