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] fuse fc prelu #5468

Merged
merged 4 commits into from
Mar 4, 2021
Merged

Conversation

daming5432
Copy link
Collaborator

@daming5432 daming5432 commented Feb 4, 2021

针对依赖#5461的修改已完成

__global const CL_DTYPE* bias,
__global CL_DTYPE* c,
const int M, const int N, const int K) {
void fc_gemv_1x4(__global const float* a,
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议使用CL_DTYPE类型

@@ -167,13 +190,14 @@ class FcCompute
int m_, n_, k_;
param_t* fc_param_{nullptr};
std::string kernel_func_name_{};
std::string build_options_{"-DCL_DTYPE_float "};
std::string build_options_{"-DCL_DTYPE_half "};
Copy link
Collaborator

Choose a reason for hiding this comment

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

此处使用 float 吧

Copy link
Contributor

@ysh329 ysh329 left a comment

Choose a reason for hiding this comment

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

LGTM

@daming5432 daming5432 merged commit 6d3a5e3 into PaddlePaddle:develop Mar 4, 2021
@ysh329 ysh329 changed the title fuse fc prelu [OPENCL] fuse fc prelu Mar 4, 2021
@daming5432 daming5432 deleted the fuse_fc_prelu branch March 4, 2021 02:21
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

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