Skip to content

Commit

Permalink
convert int to constant int
Browse files Browse the repository at this point in the history
  • Loading branch information
daniandtheweb committed Feb 10, 2025
1 parent c982f00 commit a6b70d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void main() {

[[unroll]] for (uint idx = 0; idx < NUM_ITER; ++idx) {

uint i = base_idx + idx;
const uint i = base_idx + idx;

if (i >= p.pelements) {
break;
Expand All @@ -59,8 +59,8 @@ void main() {
const uint ky = rem / p.OW;
const uint ix = rem % p.OW;

int iiw = int(ix) * p.s0 + int(kx) * p.d0 - p.p0;
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;

const uint dst_offset = dst_base + ix * p.CHW + ky * p.KW + kx;

Expand Down

0 comments on commit a6b70d4

Please sign in to comment.