]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
[ggml] fix index for ne03 value in ggml_cl_mul_f32 (#2088)
authorGovlzkoy <redacted>
Mon, 3 Jul 2023 23:50:00 +0000 (07:50 +0800)
committerGitHub <redacted>
Mon, 3 Jul 2023 23:50:00 +0000 (07:50 +0800)
ggml-opencl.cpp

index fed4ffb0ccd0538b56aa552023581974b3fe2332..fa0bdbefb1de4fba5b64b39707dfca742236e12a 100644 (file)
@@ -1376,7 +1376,7 @@ static void ggml_cl_mul_f32(const ggml_tensor * src0, const ggml_tensor * src1,
     const int64_t ne00 = src0->ne[0];
     const int64_t ne01 = src0->ne[1];
     const int64_t ne02 = src0->ne[2];
-    const int64_t ne03 = src0->ne[2];
+    const int64_t ne03 = src0->ne[3];
     const int64_t ne0 = ne00 * ne01 * ne02 * ne03;
     const int64_t ne10 = src1->ne[0];
     const int64_t ne11 = src1->ne[1];