提交 ac98700f 编写于 作者: J Jiaying Zhao 提交者: GitHub

fix build error of scale_kernel.cl on Mali (#1694)

上级 0c451ed9
...@@ -30,6 +30,6 @@ __kernel void scale(__read_only image2d_t input, ...@@ -30,6 +30,6 @@ __kernel void scale(__read_only image2d_t input,
int pos_x = mad24(out_c, out_width, out_w); int pos_x = mad24(out_c, out_width, out_w);
half4 in = read_imageh(input, sampler, (int2)(pos_x, out_nh)); half4 in = read_imageh(input, sampler, (int2)(pos_x, out_nh));
in = scale * in + bias; in = convert_half(scale) * in + convert_half(bias);
write_imageh(output, (int2)(pos_x, out_nh), in); write_imageh(output, (int2)(pos_x, out_nh), in);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册