mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-16 18:31:27 +00:00
Default kOrtSessionOptionsDisableQuantQDQ to 1 when DML EP is registered
This commit is contained in:
parent
64e97eb10e
commit
d7b7e4b010
1 changed files with 8 additions and 0 deletions
|
|
@ -498,6 +498,14 @@ common::Status InferenceSession::RegisterExecutionProvider(const std::shared_ptr
|
|||
session_options_.enable_mem_pattern = false;
|
||||
}
|
||||
|
||||
// Default to disabling generation of QDQ for the DML EP
|
||||
if (session_options_.config_options.GetConfigEntry(kOrtSessionOptionsDisableQuantQDQ) == std::nullopt) {
|
||||
auto st = session_options_.config_options.AddConfigEntry(kOrtSessionOptionsDisableQuantQDQ, "1");
|
||||
if (!st.IsOK()) {
|
||||
return st;
|
||||
}
|
||||
}
|
||||
|
||||
// Parallel execution mode does not support DML EP
|
||||
if (session_options_.execution_mode != ExecutionMode::ORT_SEQUENTIAL) {
|
||||
LOGS(*session_logger_, WARNING)
|
||||
|
|
|
|||
Loading…
Reference in a new issue