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

pull/1001/head master-c12b14b
Ivan Komarov 1 year ago committed by GitHub
parent 106faaf297
commit c12b14b77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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];

Loading…
Cancel
Save