From bdf3b8ad70cbfd39015b13e72bb33470f49d1f1d Mon Sep 17 00:00:00 2001 From: slaren Date: Tue, 30 Jan 2024 14:49:55 +0100 Subject: [PATCH] ggml : check types in release builds too in pool_2d --- ggml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml.c b/ggml.c index ad0a503fd..f913c213e 100644 --- a/ggml.c +++ b/ggml.c @@ -12790,8 +12790,8 @@ static void ggml_compute_forward_pool_2d( const struct ggml_compute_params * params, const struct ggml_tensor * src, struct ggml_tensor * dst) { - assert(src->type == GGML_TYPE_F32); - assert(params->ith == 0); + GGML_ASSERT(src->type == GGML_TYPE_F32); + GGML_ASSERT(params->ith == 0); if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) { return;