aboutsummaryrefslogtreecommitdiff
path: root/ggml-opencl.cpp
diff options
context:
space:
mode:
authorGovlzkoy <gotope@users.noreply.github.com>2023-07-04 07:50:00 +0800
committerGitHub <noreply@github.com>2023-07-04 07:50:00 +0800
commit14a2cc71f62e45803ae70890ffbdeb0a172e6210 (patch)
treef5f96c539bb687cd952a7adcfd5a5eafbf7aa5b9 /ggml-opencl.cpp
parent1cf14ccef12e19c5a5b0b17ab456242d1f8c7fdd (diff)
[ggml] fix index for ne03 value in ggml_cl_mul_f32 (#2088)
Diffstat (limited to 'ggml-opencl.cpp')
-rw-r--r--ggml-opencl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-opencl.cpp b/ggml-opencl.cpp
index fed4ffb..fa0bdbe 100644
--- a/ggml-opencl.cpp
+++ b/ggml-opencl.cpp
@@ -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];