Explorar o código

benchmark : fix result validation in benchmark-q4_0-matmult (#987)

Ivan Komarov %!s(int64=2) %!d(string=hai) anos
pai
achega
c12b14b77f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/benchmark/benchmark-q4_0-matmult.c

+ 1 - 1
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];