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

[Cherry-Pick][OpenCL]Fix yolo_box bug #9793

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

sprouteer
Copy link
Collaborator

No description provided.

@paddle-bot
Copy link

paddle-bot bot commented Dec 4, 2022

Thanks for your contribution!

@@ -605,9 +605,27 @@ void RuntimeProgram::Run() {
#ifdef LITE_WITH_OPENCL
// delegate flush judgement to specify target , it is too heavy for Inst
inst.Flush(idx);
#if defined(LITE_WITH_PROFILE) || defined(LITE_WITH_PRECISION_PROFILE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个是只有OpenCL才有的特性吗?是否能作为通用的功能?能否放在 #ifdef LITE_WITH_OPENCL 外部?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个是为了方便使用OpenCL 配置部分op到其他后端的时候,可以直接根据这里打印出来的op的输入输出变量名字,去写配置文件

Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@sprouteer sprouteer merged commit b150c13 into PaddlePaddle:release/v2.12 Dec 5, 2022
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