whisper : add comment for disabling mul-mat padding

This commit is contained in:
Georgi Gerganov 2023-09-14 15:25:19 +03:00
parent c46167f8c5
commit f36554382a
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -137,6 +137,10 @@ static void ggml_graph_compute_helper(std::vector<uint8_t> & 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);
}