Skip to content

Commit c7902f3

Browse files
Fixed lint issues (#871)
1 parent 3df4951 commit c7902f3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

onnxruntime/core/providers/openvino/ov_interface.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ void StatefulOVInferRequest::RewindKVCache(size_t index) {
552552
}
553553

554554
OVTensorPtr StatefulOVInferRequest::GetTensor(const std::string& input_name) {
555-
556555
auto tobj = OVInferRequest::GetTensor(input_name);
557556

558557
if (_npu_logits_slice_required) {
@@ -583,7 +582,7 @@ OVTensorPtr StatefulOVInferRequest::GetTensor(const std::string& input_name) {
583582
return blob;
584583
}
585584
},
586-
"Could not create sliced logits tensor");
585+
"Could not create sliced logits tensor");
587586
}
588587
}
589588
}

onnxruntime/core/providers/openvino/ov_stateful_patch_utils.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ std::pair<std::vector<std::string>, std::unordered_set<std::string>> ExtractKVPa
178178
// not_kv_inputs = ["input_ids", "attention_mask"]
179179
std::pair<std::vector<std::string>, std::vector<std::string>> ExtractInputKVTensors(
180180
const std::shared_ptr<ov::Model>& model, const std::unordered_set<std::string>& kv_patterns) {
181-
182181
std::vector<std::string> key_value_input_names;
183182
std::vector<std::string> not_kv_inputs;
184183

@@ -258,11 +257,11 @@ void PatchStatefulDecoder(std::shared_ptr<ov::Model> model) {
258257
}
259258

260259
if (key_value_input_names.size() != key_value_output_names.size()) {
261-
ORT_THROW("Found different sizes between key_value_input_names (",
262-
key_value_input_names.size(),
263-
") and key_value_output_names (",
264-
key_value_output_names.size(),
265-
"). They couldn't be paired.");
260+
ORT_THROW("Found different sizes between key_value_input_names (",
261+
key_value_input_names.size(),
262+
") and key_value_output_names (",
263+
key_value_output_names.size(),
264+
"). They couldn't be paired.");
266265
}
267266

268267
// By default, batch is the 0 - th but chatglm uses 1 - st dimension as batch

0 commit comments

Comments
 (0)