From 28d1c4566ac1cf7233b86c1933b5ad3740e220b8 Mon Sep 17 00:00:00 2001 From: Tejaakshaykumar <147340353+Tejaakshaykumar@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:13:48 +0530 Subject: [PATCH] Update examples/llava/clip.cpp Used fprintf instead of output streams. Co-authored-by: Clint Herron --- examples/llava/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 940b373c4..7155832b4 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -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 {