Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into snnn/vcpkg2
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 23, 2025
2 parents 9faa9f9 + 06fc73b commit f225355
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ struct ProviderHost {

// logging::LoggingManager
virtual const logging::Logger& logging__LoggingManager__DefaultLogger() = 0;
virtual bool logging__LoggingManager__HasDefaultLogger() = 0;

// logging::Capture
virtual std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct Logger final {

struct LoggingManager final {
static const Logger& DefaultLogger() { return g_host->logging__LoggingManager__DefaultLogger(); }
static bool HasDefaultLogger() { return g_host->logging__LoggingManager__HasDefaultLogger(); }

PROVIDER_DISALLOW_ALL(LoggingManager)
};
Expand Down
1 change: 1 addition & 0 deletions onnxruntime/core/session/provider_bridge_ort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ struct ProviderHostImpl : ProviderHost {

// logging::LoggingManager (wrapped)
const logging::Logger& logging__LoggingManager__DefaultLogger() override { return logging::LoggingManager::DefaultLogger(); }
bool logging__LoggingManager__HasDefaultLogger() override { return logging::LoggingManager::HasDefaultLogger(); }

// logging::Capture (wrapped)
std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,
Expand Down
2 changes: 2 additions & 0 deletions onnxruntime/python/tools/tensorrt/perf/build/build_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Builds an Ubuntu-based Docker image with TensorRT.
"""

from __future__ import annotations

import argparse
import os
import pty
Expand Down

0 comments on commit f225355

Please sign in to comment.