Skip to content

Commit 0fe0302

Browse files
committed
remove hardcode
1 parent b610b5f commit 0fe0302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/backends/basic_backend.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ struct OnnxToOvNetworkBindings {
7373
// stateful representation has introduced these new tensors, creating a name mismatch (matched_names=false).
7474
// So, if there is a name mismatch, or the name matches our special io list, we simply continue processing
7575
// here to prevent runtime exceptions.
76-
//if (session_context.enable_causallm) {
76+
if (session_context.enable_causallm) {
7777
if (!matched_names ||
7878
std::any_of(special_io_names_.begin(), special_io_names_.end(),
7979
[&onnx_name](const std::string& name) { return onnx_name.find(name) != std::string::npos; })) {
8080
// This case also requires dynamic shape inference, so we'll mark the bindings as dynamic.
8181
has_dynamic_io_ = true;
8282
continue;
8383
}
84-
//}
84+
}
8585

8686
ORT_ENFORCE(matched_names, log_tag,
8787
"Input names mismatch between OpenVINO and ONNX. ", onnx_name,

0 commit comments

Comments
 (0)