Skip to content

Commit f2853da

Browse files
authored
Remove comments for code clarity
Removed comments to clean up the code.
1 parent 20717ac commit f2853da

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ggml/src/ggml-sycl/repeat_back.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ void ggml_sycl_op_repeat_back(ggml_backend_sycl_context & ctx, ggml_tensor * dst
3535
constexpr int BLOCK_SIZE = 256;
3636
const int num_blocks = (total + BLOCK_SIZE - 1) / BLOCK_SIZE;
3737

38-
// Precompute inverse sizes to replace integer divisions with multiplications
3938
const float inv_ne0 = 1.0f / ne0;
4039
const float inv_ne_01 = 1.0f / (ne0 * ne1);
4140
const float inv_ne_012 = 1.0f / (ne0 * ne1 * ne2);
@@ -51,7 +50,6 @@ void ggml_sycl_op_repeat_back(ggml_backend_sycl_context & ctx, ggml_tensor * dst
5150
return;
5251
}
5352

54-
// Compute multidimensional indices (i0,i1,i2,i3) from the flattened linear index i
5553
const int i3 = (int) (i * inv_ne_012);
5654
const int i2 = (int) (i * inv_ne_01) - i3 * ne2;
5755
const int i1 = (int) (i * inv_ne0) - (int) (i * inv_ne_01) * ne1;
@@ -66,7 +64,6 @@ void ggml_sycl_op_repeat_back(ggml_backend_sycl_context & ctx, ggml_tensor * dst
6664
(i2 + j2 * ne2) * nb2 + (i3 + j3 * ne3) * nb3);
6765
acc += *ptr;
6866

69-
// Manual carry propagation simulates nested loops efficiently
7067
int carry = (++j0 >= nr0);
7168
j0 -= carry * nr0;
7269
carry = (carry && (++j1 >= nr1));

0 commit comments

Comments
 (0)