From f36554382aacb69d4d414352c9db67a293b3330b Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 14 Sep 2023 15:25:19 +0300 Subject: [PATCH] whisper : add comment for disabling mul-mat padding --- whisper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/whisper.cpp b/whisper.cpp index 9e699046..e607c328 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -137,6 +137,10 @@ static void ggml_graph_compute_helper(std::vector & buf, ggml_cgraph * } static struct ggml_tensor * ggml_mul_mat_pad(struct ggml_context * ctx, struct ggml_tensor * x, struct ggml_tensor * y, int pad = 32) { +//#if !defined(GGML_USE_METAL) +// return ggml_mul_mat(ctx, x, y); +//#endif + if (x->ne[0] % pad == 0 || x->ne[0] / pad < 2) { return ggml_mul_mat(ctx, x, y); }