-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Inference] Add tuned trt_dynamic_shape mode. #34806
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
Conversation
|
Thanks for your contribution! |
… tuned_dynamic_shape
… tuned_dynamic_shape
… tuned_dynamic_shape
… tuned_dynamic_shape
… tuned_dynamic_shape
… tuned_dynamic_shape
… tuned_dynamic_shape
cryoco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… into tuned_dynamic_shape
shangzhizhou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
lanxianghit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for API changes, compatibility confirmed.
raindrops2sea
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Others
Describe
trt support tuned_dynamic_shape mode.
1、Use offline data for autotune, get the shape range information at runtime and save it in the
shape_range_info.pbtxt.config.CollectShapeRangeInfo("shape_range_info.pbtxt")the file looks like
2、Comment
config.CollectShapeInfo("shape_range_info.pbtxt")and setconfig.EnableTunedTensorRtDynamicShape("shape_range_info.pbtxt", /*allow_build_at_runtime*/ true);3、DEMO:https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master/c%2B%2B/paddle-trt/tuned_dynamic_shape