summaryrefslogtreecommitdiff
path: root/tests/test-quantize-fns.cpp
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-10-30 19:19:15 +0200
committerGitHub <noreply@github.com>2023-10-30 19:19:15 +0200
commit207b51900e15cc7f89763a3bb1c565fe11cbb45d (patch)
tree0e37b11eafe495bfc66893f70e1e471bf52c3cd4 /tests/test-quantize-fns.cpp
parent6e08281e588bbba1a5d180290a94a43f167f3a1a (diff)
ggml : move FP16 <-> FP32 code to ggml-impl.h (#3861)
* ggml : move FP16 <-> FP32 stuff to ggml-impl.h ggml-ci * tests : fix ARM build * ggml : explicitly initialize deprecated type traits * ggml : add math.h to ggml-impl.h * ggml : remove duplicate static assert macros * ggml : prefix lookup tables with ggml_ ggml-ci * ggml-impl : move extern "C" to start of file
Diffstat (limited to 'tests/test-quantize-fns.cpp')
-rw-r--r--tests/test-quantize-fns.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-quantize-fns.cpp b/tests/test-quantize-fns.cpp
index 884af405..a2459a28 100644
--- a/tests/test-quantize-fns.cpp
+++ b/tests/test-quantize-fns.cpp
@@ -129,6 +129,13 @@ int main(int argc, char * argv[]) {
ggml_type type = (ggml_type) i;
ggml_type_traits_t qfns = ggml_internal_get_type_traits(type);
+ // deprecated - skip
+ if (qfns.blck_size == 0) {
+ continue;
+ }
+
+ printf("Testing %s\n", ggml_type_name((ggml_type) i));
+
if (qfns.from_float && qfns.to_float) {
const float total_error = total_quantization_error(qfns, test_size, test_data.data());
const float max_quantization_error =