未验证 提交 d218c83d 编写于 作者: D dolphin8 提交者: GitHub

Merge pull request #1113 from dolphin8/opencl

cl_image
......@@ -220,10 +220,11 @@ class CLImage {
size_t i0 = 0;
for (int n = 0; n < N; n++) {
for (int c = 0; c < C; c++) {
size_t i1 = i0;
size_t i1 = i0 + (c / 4) * W;
for (int h = 0; h < H; h++) {
size_t i2 = (i1 << 2) + c % 4;
for (int w = 0; w < W; w++) {
// int x = (n * width * H + h * width + (c / 4) * W + w) * 4 + (c % 4);
imageData[i2] = Float2Half(*p);
i2 += 4;
p++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册