From: M. Yusuf Sarıgöz Date: Sun, 25 Jun 2023 12:59:24 +0000 (+0300) Subject: ggml : do not round up the conv 2D row size (#274) X-Git-Tag: upstream/0.0.1642~1380 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=70c5a5c5e9c1a717b1fcfd129d5ae4a60fbe98b0;p=pkg%2Fggml%2Fsources%2Fggml ggml : do not round up the conv 2D row size (#274) --- diff --git a/src/ggml.c b/src/ggml.c index 955f335c..af229475 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -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));