-
Notifications
You must be signed in to change notification settings - Fork 974
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
Enhance support for Paddle-TensorRT #2817
Enhance support for Paddle-TensorRT #2817
Conversation
Thanks for your contribution! |
if self.option.disable_glog_info: | ||
config.disable_glog_info() |
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.
这里我改成通过PADDLE_PDX_DEBUG来控制了
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.
这是环境变量还是?
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.
嗯是的,PADDLE_PDX_DEBUG=1时,不再disable
config.enable_tuned_tensorrt_dynamic_shape( | ||
self.option.shape_info_filename, True | ||
) | ||
if self.option.trt_use_dynamic_shapes: |
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.
这里因为涉及要支持pir trt,所以可能还得改
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.
可以的~ 那样的话我理解我们是不是可以把trt相关的逻辑拆到一个单独的比如_configure_trt
方法里,现在这块有点儿太复杂了
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.
是的,trt的相关设置也非常多,要单独封装起来
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.
好的,那要不等你的PR先合入后,我这边再统一适配调整一下?
本PR内容合入 #2860 |
No description provided.