aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-06-26 21:03:59 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-06-26 21:03:59 +0300
commitc824d2e368d193d9f564ff29880a51cda9f90527 (patch)
treef951b9586d235be9b01c4b75f40101fa1bb0cb48
parentb853d456018b10820686362af41b2f2f75f1eec6 (diff)
ggml : avoid conv 2d kernel round up
-rw-r--r--ggml.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ggml.c b/ggml.c
index 4d51e31..c179bee 100644
--- a/ggml.c
+++ b/ggml.c
@@ -13508,8 +13508,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));