diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-17 17:31:06 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-17 17:31:06 +0300 |
commit | eb17a026fd23d1c1b612fa4600f7f5c58e501a28 (patch) | |
tree | a3b7a1e7746d646ad5b14d404ab8cad6142b73e5 /examples/quantize-stats | |
parent | 69b740289f9b3756ea9dd2a23f241c6f688d88b9 (diff) |
quantize-stats : fix bug in --type argument
Diffstat (limited to 'examples/quantize-stats')
-rw-r--r-- | examples/quantize-stats/quantize-stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp index 0503009..cd973e8 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) { |