diff --git a/onnxruntime/core/providers/dml/dml_provider_factory.cc b/onnxruntime/core/providers/dml/dml_provider_factory.cc index 73a068f3e1de2..b2688094a6d78 100644 --- a/onnxruntime/core/providers/dml/dml_provider_factory.cc +++ b/onnxruntime/core/providers/dml/dml_provider_factory.cc @@ -329,7 +329,6 @@ static std::optional ParseFilter(const ProviderOptions& prov static const std::string Any = "any"; static const std::string Gpu = "gpu"; #ifdef ENABLE_NPU_ADAPTER_ENUMERATION - static const std::string Any = "any"; static const std::string Npu = "npu"; #endif