Update examples/llava/clip.cpp

Used fprintf instead of output streams.

Co-authored-by: Clint Herron <hanclinto@gmail.com>
This commit is contained in:
Tejaakshaykumar 2024-09-17 15:13:48 +05:30 committed by GitHub
parent aa9e72158b
commit 28d1c4566a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1283,7 +1283,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
throw std::invalid_argument("Invalid hyperparameter values");
}
} catch (const std::exception& e) {
std::cerr << "Error while loading hyperparameters: " << e.what() << std::endl;
fprintf(stderr, "Error while loading hyperparameters: %s\n", e.what());
return false;
}
try {