From: Georgi Gerganov Date: Mon, 17 Apr 2023 14:31:06 +0000 (+0300) Subject: quantize-stats : fix bug in --type argument X-Git-Tag: gguf-v0.4.0~939 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=eb17a026fd23d1c1b612fa4600f7f5c58e501a28;p=pkg%2Fggml%2Fsources%2Fllama.cpp quantize-stats : fix bug in --type argument --- diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp index 05030093..cd973e8a 100644 --- a/examples/quantize-stats/quantize-stats.cpp +++ b/examples/quantize-stats/quantize-stats.cpp @@ -221,7 +221,7 @@ int main(int argc, char ** argv) { break; } int j; - for (j = 0; j < GGML_TYPE_COUNT && strcmp(argv[i], ggml_type_name((ggml_type) i)) != 0; j++) { + for (j = 0; j < GGML_TYPE_COUNT && strcmp(argv[i], ggml_type_name((ggml_type) j)) != 0; j++) { // find match } if (j < GGML_TYPE_COUNT) {