Skip to content

Commit

Permalink
enable OVEP qdq stripping for dynamic models (#522) (#524)
Browse files Browse the repository at this point in the history
Co-authored-by: saurabh <[email protected]>
  • Loading branch information
2 people authored and javier-intel committed Jan 9, 2025
1 parent 66e74d3 commit c7e9067
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions onnxruntime/core/providers/openvino/backend_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ BackendManager::BackendManager(const GlobalContext& global_context,
if (ModelHasSymbolicInputDims(subgraph)) {
subgraph_context_.has_dynamic_input_shape = true;
LOGS_DEFAULT(INFO) << "[OpenVINO-EP] Model has symbolic input dims";
ORT_ENFORCE(!global_context_.enable_qdq_optimizer,
"QDQ stripping should not be enabled for models with dynamic input shapes. "
"Set enable_qdq_optimizer to False");
if ((GetGlobalContext().device_type.find("CPU") != std::string::npos ||
GetGlobalContext().device_type.find("GPU") != std::string::npos) &&
!GetGlobalContext().disable_dynamic_shapes) {
Expand Down

0 comments on commit c7e9067

Please sign in to comment.