ggml : explicitly initialize deprecated type traits

This commit is contained in:
Georgi Gerganov 2023-10-30 17:09:37 +02:00
parent a1c3ff68cd
commit 334984e457
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 29 additions and 0 deletions

View file

@ -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 =