Skip to content

[OPENCL] fuse fc prelu#5468

Merged
daming5432 merged 4 commits intoPaddlePaddle:developfrom
daming5432:fuse_fc_prelu
Mar 4, 2021
Merged

[OPENCL] fuse fc prelu#5468
daming5432 merged 4 commits intoPaddlePaddle:developfrom
daming5432:fuse_fc_prelu

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类型

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