Skip to content

Commit

Permalink
Create ORT_ENV with OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyems authored and baijumeswani committed May 1, 2024
1 parent 9fdbcd1 commit b74a847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<OrtGlobals>& GetOrtGlobals() {
static auto globals = std::make_unique<OrtGlobals>();
Expand Down

0 comments on commit b74a847

Please sign in to comment.