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

Enhance support for Paddle-TensorRT #2817

Conversation

Bobholamovic
Copy link
Member

No description provided.

Copy link

paddle-bot bot commented Jan 10, 2025

Thanks for your contribution!

paddlex/inference/utils/pp_option.py Show resolved Hide resolved
Comment on lines +289 to +290
if self.option.disable_glog_info:
config.disable_glog_info()
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里我改成通过PADDLE_PDX_DEBUG来控制了

Copy link
Member Author

Choose a reason for hiding this comment

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

这是环境变量还是?

Copy link
Collaborator

Choose a reason for hiding this comment

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

config.enable_tuned_tensorrt_dynamic_shape(
self.option.shape_info_filename, True
)
if self.option.trt_use_dynamic_shapes:
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里因为涉及要支持pir trt,所以可能还得改

Copy link
Member Author

Choose a reason for hiding this comment

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

可以的~ 那样的话我理解我们是不是可以把trt相关的逻辑拆到一个单独的比如_configure_trt方法里,现在这块有点儿太复杂了

Copy link
Collaborator

Choose a reason for hiding this comment

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

是的,trt的相关设置也非常多,要单独封装起来

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,那要不等你的PR先合入后,我这边再统一适配调整一下?

@Bobholamovic
Copy link
Member Author

本PR内容合入 #2860

@Bobholamovic Bobholamovic deleted the feat/multibackend_inference branch January 23, 2025 08:30
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.

2 participants