提交 0f110d69 编写于 作者: Y Yuan Shuai 提交者: GitHub

[LITE][OPENCL] Fix fc opencl (#3190)

* [LITE][OPENCL] Change fp32 fc to fp16's. test=develop

* fix act in conv3x3opt opencl kernel. test=develop

* [LITE][OPENCL] fix opencl fc kernel. test=develop
上级 5b08f7fc
......@@ -305,7 +305,8 @@ void fc_gemv_1x4(__global const CL_DTYPE* a,
// store res
#ifdef RELU
if (col % 4 == 0) {
vstore4(fmax(c0, (CL_DTYPE4)0.f), 0, c + col);
float4 act_res = convert_float4(fmax(c0, (half4)0.f));
vstore4(act_res, 0, c + col);
} else {
switch (col % 4) {
case 3:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册