We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c982f00 commit a6b70d4Copy full SHA for a6b70d4
ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp
@@ -48,7 +48,7 @@ void main() {
48
49
[[unroll]] for (uint idx = 0; idx < NUM_ITER; ++idx) {
50
51
- uint i = base_idx + idx;
+ const uint i = base_idx + idx;
52
53
if (i >= p.pelements) {
54
break;
@@ -59,8 +59,8 @@ void main() {
59
const uint ky = rem / p.OW;
60
const uint ix = rem % p.OW;
61
62
- int iiw = int(ix) * p.s0 + int(kx) * p.d0 - p.p0;
63
- int iih = oh_s1 + int(ky) * p.d1 - p.p1;
+ const int iiw = int(ix) * p.s0 + int(kx) * p.d0 - p.p0;
+ const int iih = oh_s1 + int(ky) * p.d1 - p.p1;
64
65
const uint dst_offset = dst_base + ix * p.CHW + ky * p.KW + kx;
66
0 commit comments