Update examples/quantize/quantize.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
jiez 2024-04-22 22:27:25 +08:00 committed by GitHub
parent 79bbf42495
commit 6d66e609b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -354,7 +354,7 @@ int main(int argc, char ** argv) {
}
} else {
fname_out = argv[arg_idx];
if (params.keep_split && fname_out.find(suffix) !=std::string::npos) {
if (params.keep_split && fname_out.find(suffix) != std::string::npos) {
fname_out = fname_out.substr(0, fname_out.length() - suffix.length());
}
arg_idx++;