]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : do not round up the conv 2D row size (#274)
authorM. Yusuf Sarıgöz <redacted>
Sun, 25 Jun 2023 12:59:24 +0000 (15:59 +0300)
committerGitHub <redacted>
Sun, 25 Jun 2023 12:59:24 +0000 (15:59 +0300)
src/ggml.c

index 955f335cd18275174f2e3b338db013dc70aa7c2d..af2294750c1843ba5dcb156cc2abb38beca3823c 100644 (file)
@@ -13387,8 +13387,7 @@ static void ggml_compute_forward_conv_2d_sk_p0_f16_f32(
     const int nk1 = ne01;
 
     // size of the convolution row - the kernel size unrolled across all channels
-    // round-up so it is more suitable for SIMD
-    const int ew0 = ggml_up32(nk0*nk1*ne02);
+    const int ew0 = nk0*nk1*ne02;
 
     GGML_ASSERT(nb00 == sizeof(ggml_fp16_t));
     GGML_ASSERT(nb10 == sizeof(float));