Skip to content

Commit 921da08

Browse files
committed
fix: lint fixes
1 parent 761d911 commit 921da08

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

onnxruntime/core/providers/openvino/openvino_provider_factory.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919

2020
namespace onnxruntime {
2121
namespace openvino_ep {
22-
<<<<<<< HEAD
23-
=======
24-
25-
>>>>>>> a36ddbc86a (Stateful PoC: Perform stateless -> stateful conversion of ov::Model)
2622
void ParseConfigOptions(ProviderInfo& pi) {
2723
if (pi.config_options == nullptr)
2824
return;
@@ -350,7 +346,6 @@ static void ParseProviderInfo(const ProviderOptions& provider_options,
350346
pi.enable_causallm = ParseBooleanOption(provider_options, "enable_causallm");
351347

352348
pi.disable_dynamic_shapes = ParseBooleanOption(provider_options, "disable_dynamic_shapes");
353-
}
354349
} catch (std::string msg) {
355350
ORT_THROW(msg);
356351
}

onnxruntime/core/providers/openvino/ov_interface.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ OVExeNetwork OVCore::StatefulCompileModel(std::shared_ptr<OVNetwork>& model,
112112
if (hw_target.find("NPU") != std::string::npos) {
113113
KVDesc kv_desc;
114114
auto parse_genai_config = [&](const std::string& key, unsigned int default_value) {
115-
return (config.count(key) && !config.at(key).empty() && config.at(key).as<std::string>() != "0") ?
116-
config.at(key).as<unsigned int>() : default_value;
115+
return (config.count(key) && !config.at(key).empty() && config.at(key).as<std::string>() != "0") ? config.at(key).as<unsigned int>() : default_value;
117116
};
118117

119118
kv_desc.max_prompt_len = parse_genai_config("MAX_PROMPT_LEN", CausalLMConfig().max_prompt_len);

onnxruntime/core/providers/openvino/ov_interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ class OVExeNetwork {
110110
ov::CompiledModel obj;
111111
std::string _device;
112112
bool _stateful_llm;
113+
113114
public:
114-
explicit OVExeNetwork(ov::CompiledModel md, std::string device, bool stateful_llm = false)
115+
explicit OVExeNetwork(ov::CompiledModel md, std::string device, bool stateful_llm = false)
115116
: obj(md), _device(device), _stateful_llm(stateful_llm) {}
116117
OVExeNetwork() : obj(ov::CompiledModel()) {}
117118
ov::CompiledModel& Get() { return obj; }

onnxruntime/test/perftest/ort_test_session.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,9 @@ select from 'TF8', 'TF16', 'UINT8', 'FLOAT', 'ITENSOR'. \n)");
746746
value == "false" || value == "False") {
747747
ov_options[key] = value;
748748
} else {
749-
ORT_THROW("[ERROR] [OpenVINO] The value for the key 'enable_causallm' should be a boolean i.e. true or false."
750-
" Default value is false. This provider option must be used with CausalLM Models viz. LLMs & SLMs only.\n");
749+
ORT_THROW(
750+
"[ERROR] [OpenVINO] The value for the key 'enable_causallm' should be a boolean i.e. true or false."
751+
" Default value is false. This provider option must be used with CausalLM Models viz. LLMs & SLMs only.\n");
751752
}
752753
} else if (key == "disable_dynamic_shapes") {
753754
if (value == "true" || value == "True" ||

0 commit comments

Comments
 (0)