quantize-stats : fix bug in --type argument

This commit is contained in:
Georgi Gerganov 2023-04-17 17:31:06 +03:00
parent 69b740289f
commit eb17a026fd
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -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) {