From c50b628810f36a3e6e0324371f6db579eacefa0e Mon Sep 17 00:00:00 2001 From: Stephan Walter Date: Sat, 22 Apr 2023 10:54:13 +0000 Subject: Fix CI: ARM NEON, quantization unit tests, editorconfig (#1122) --- tests/test-quantize-fns.cpp | 2 +- tests/test-quantize-perf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-quantize-fns.cpp b/tests/test-quantize-fns.cpp index 5a541015..7e091e8c 100644 --- a/tests/test-quantize-fns.cpp +++ b/tests/test-quantize-fns.cpp @@ -120,7 +120,7 @@ int main(int argc, char * argv[]) { ggml_type type = (ggml_type) i; quantize_fns_t qfns = ggml_internal_get_quantize_fn(i); - if (qfns.quantize_row_q) { + if (qfns.quantize_row_q && qfns.dequantize_row_q) { const float total_error = total_quantization_error(qfns, test_size, test_data.data()); failed = !(total_error < MAX_QUANTIZATION_TOTAL_ERROR); num_failed += failed; diff --git a/tests/test-quantize-perf.cpp b/tests/test-quantize-perf.cpp index 883df05f..d5514455 100644 --- a/tests/test-quantize-perf.cpp +++ b/tests/test-quantize-perf.cpp @@ -225,7 +225,7 @@ int main(int argc, char * argv[]) { continue; } - if (qfns.quantize_row_q) { + if (qfns.quantize_row_q && qfns.dequantize_row_q) { printf("%s\n", ggml_type_name(type)); if (params.op_quantize_row_q_reference) { -- cgit v1.2.3