From f571b05b686e3ac1ff3b5e86d2ff9f161bcaefe3 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Mon, 30 Sep 2024 09:45:37 +0300 Subject: [PATCH] ggml : fix ggml_cast --- src/ggml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ggml.c b/src/ggml.c index fa8d6c25a..aac4e3a7b 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -5818,6 +5818,7 @@ struct ggml_tensor * ggml_cast( result->op = GGML_OP_CPY; result->src[0] = a; + result->src[1] = result; return result; }