]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix ggml_cast (ggml/973)
authorBorislav Stanimirov <redacted>
Mon, 30 Sep 2024 07:11:41 +0000 (10:11 +0300)
committerGeorgi Gerganov <redacted>
Tue, 1 Oct 2024 13:07:39 +0000 (16:07 +0300)
ggml/src/ggml.c

index fa8d6c25a982d08095254939ea5552fda94cf69a..aac4e3a7b0c676a84fed4b06d22a33618e386441 100644 (file)
@@ -5818,6 +5818,7 @@ struct ggml_tensor * ggml_cast(
 
     result->op     = GGML_OP_CPY;
     result->src[0] = a;
+    result->src[1] = result;
 
     return result;
 }