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

[OpenCL]instance_norm support fp32 #8021

Merged

Conversation

sprouteer
Copy link
Collaborator

No description provided.

@paddle-bot-old
Copy link

Thanks for your contribution!

zhenlin-work
zhenlin-work previously approved these changes Dec 20, 2021
Copy link
Collaborator

@zhenlin-work zhenlin-work left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -139,7 +142,12 @@ class InstanceNormImageCompute : public KernelLite<TARGET(kOpenCL),

float epsilon = instance_norm_param_->epsilon;

// compute global/local work size
auto device_info = CLRuntime::Global()->GetDeviceInfo();
int max_work_item_size1 = device_info["CL_DEVICE_MAX_WORK_ITEM_SIZES_1"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

max_work_item_size1 变量并没有用到?之前版本中 lws1 是要小于 max_work_item_size1 的

Copy link
Collaborator

@zhaoyang-star zhaoyang-star 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 7d5a9ae into PaddlePaddle:develop Dec 31, 2021
WeiLi233 pushed a commit to WeiLi233/Paddle-Lite that referenced this pull request Mar 29, 2022
* instance_norm support fp32 test=develop
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