Skip to content

Commit

Permalink
benchmark : fix result validation in benchmark-q4_0-matmult (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfyz authored Apr 15, 2023
1 parent 106faaf commit c12b14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/benchmark/benchmark-q4_0-matmult.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c12b14b

Please sign in to comment.