未验证 提交 0755254d 编写于 作者: J Jiaying Zhao 提交者: GitHub

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

上级 a23d5612
......@@ -30,6 +30,6 @@ __kernel void scale(__read_only image2d_t input,
int pos_x = mad24(out_c, out_width, out_w);
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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册