Skip to content

Commit

Permalink
Update examples/llava/clip.cpp
Browse files Browse the repository at this point in the history
Used fprintf instead of output streams.

Co-authored-by: Clint Herron <[email protected]>
  • Loading branch information
Tejaakshaykumar and HanClinto authored Sep 17, 2024
1 parent aa9e721 commit 28d1c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 28d1c45

Please sign in to comment.