Skip to content

Commit 2cd55d6

Browse files
committed
lint fixes
1 parent c3973dc commit 2cd55d6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

onnxruntime/core/providers/openvino/contexts.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,8 @@ struct ProviderInfo {
127127
"enable_causallm", "disable_dynamic_shapes", "reshape_input", "layout"};
128128
};
129129

130-
// Simple holder for runtime configuration (only session options - contains everything)
131130
struct RuntimeConfig {
132131
std::unordered_map<std::string, std::string> options;
133-
134-
// Query any option
135132
std::optional<std::string> Get(const std::string& key) const {
136133
auto it = options.find(key);
137134
return it != options.end() ? std::optional{it->second} : std::nullopt;
@@ -151,12 +148,10 @@ struct SessionContext : ProviderInfo {
151148
mutable bool has_external_weights = false; // Value is set to mutable to modify from capability
152149
const std::vector<uint32_t> OpenVINO_Version = {OPENVINO_VERSION_MAJOR, OPENVINO_VERSION_MINOR};
153150
const std::string openvino_sdk_version = std::to_string(OPENVINO_VERSION_MAJOR) + "." + std::to_string(OPENVINO_VERSION_MINOR);
154-
155-
RuntimeConfig runtime_config; // All runtime options (from session config)
151+
RuntimeConfig runtime_config;
156152

157153
private:
158154
void InitRuntimeConfig() {
159-
// Session options contain everything (including provider options with ep.openvinoexecutionprovider.* prefix)
160155
if (config_options) {
161156
runtime_config.options = config_options->GetConfigOptionsMap();
162157
}

onnxruntime/core/providers/openvino/ov_tracing.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void NTAPI OVTracing::ORT_TL_EtwEnableCallback(
181181
}
182182

183183
void OVTracing::InvokeCallbacks(LPCGUID SourceId, ULONG IsEnabled, UCHAR Level, ULONGLONG MatchAnyKeyword,
184-
ULONGLONG MatchAllKeyword, PEVENT_FILTER_DESCRIPTOR FilterData, PVOID CallbackContext) {
184+
ULONGLONG MatchAllKeyword, PEVENT_FILTER_DESCRIPTOR FilterData, PVOID CallbackContext) {
185185
std::lock_guard<std::mutex> lock_callbacks(callbacks_mutex_);
186186
for (const auto& callback : callbacks_) {
187187
(*callback)(SourceId, IsEnabled, Level, MatchAnyKeyword, MatchAllKeyword, FilterData, CallbackContext);

0 commit comments

Comments
 (0)