aboutsummaryrefslogtreecommitdiff
path: root/examples/benchmark
diff options
context:
space:
mode:
authorIvan Komarov <Ivan.Komarov@dfyz.info>2023-04-15 07:51:54 +0200
committerGitHub <noreply@github.com>2023-04-15 08:51:54 +0300
commitc12b14b77fced0ce9a0e2d81f670c3a746dec251 (patch)
treea6f6feabaebb127c933e4b9d138e6b79a96cf348 /examples/benchmark
parent106faaf2971d6c89d6010279a9a95737772470ef (diff)
benchmark : fix result validation in benchmark-q4_0-matmult (#987)
Diffstat (limited to 'examples/benchmark')
-rw-r--r--examples/benchmark/benchmark-q4_0-matmult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/benchmark/benchmark-q4_0-matmult.c b/examples/benchmark/benchmark-q4_0-matmult.c
index 90f537f..84b0676 100644
--- a/examples/benchmark/benchmark-q4_0-matmult.c
+++ b/examples/benchmark/benchmark-q4_0-matmult.c
@@ -24,7 +24,7 @@
float tensor_sum_elements(struct ggml_tensor * tensor) {
float sum = 0;
- if (tensor->type==6) {
+ if (tensor->type==GGML_TYPE_F32) {
for (int j = 0; j < tensor->ne[1]; j++) {
for (int k = 0; k < tensor->ne[0]; k++) {
sum += ((float *) tensor->data)[j*tensor->ne[0]+k];