From b74a84760aff3a745b5e00c416b1ace97cfffa1f Mon Sep 17 00:00:00 2001 From: Ye Wang <52801275+wangyems@users.noreply.github.com> Date: Wed, 1 May 2024 16:20:04 -0700 Subject: [PATCH] Create ORT_ENV with OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR (#379) https://github.com/microsoft/onnxruntime-genai/issues/373 --- src/generators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators.cpp b/src/generators.cpp index 0c664f341..60f1b161f 100644 --- a/src/generators.cpp +++ b/src/generators.cpp @@ -13,7 +13,7 @@ namespace Generators { static bool _ = (Ort::InitApi(), false); -OrtGlobals::OrtGlobals() : env_{OrtEnv::Create()} {} +OrtGlobals::OrtGlobals() : env_{OrtEnv::Create(OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR)} {} std::unique_ptr& GetOrtGlobals() { static auto globals = std::make_unique();