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

add 0d autoscan for X86, Metal, OpenCL #10275

Merged

Conversation

lishicheng1996
Copy link
Contributor

add 0d autoscan for X86, Metal, OpenCL

@paddle-bot
Copy link

paddle-bot bot commented May 16, 2023

Thanks for your contribution!

@lishicheng1996 lishicheng1996 force-pushed the x86_metal_opencl_autoscan branch from 8c29d07 to 4005198 Compare May 17, 2023 01:55
@lishicheng1996 lishicheng1996 force-pushed the x86_metal_opencl_autoscan branch from 59127c8 to 75f38e4 Compare May 17, 2023 06:31
@@ -256,22 +256,6 @@ class ActivationComputeImageDefault
CL_CHECK_FATAL(status);
}

#ifdef LITE_WITH_LOG
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个Log信息为啥要删除呀,是因为 x_dims[1] << " " << x_dims[2] << " " << x_dims[3] 这种会访存越界吗

Copy link
Contributor Author

@lishicheng1996 lishicheng1996 May 17, 2023

Choose a reason for hiding this comment

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

是的,x_dims的size可能为0, 引发错误。这个pr还没有完全ok,metal elementwise op暂时屏蔽掉了,我还在看。

Copy link
Collaborator

@mjp9527 mjp9527 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mjp9527 mjp9527 left a comment

Choose a reason for hiding this comment

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

LGTM

@mjp9527 mjp9527 merged commit 78006f4 into PaddlePaddle:develop May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants