From 1acc7c884588dacbbd3011da8c1a1d5a069e4f9e Mon Sep 17 00:00:00 2001 From: nums11 Date: Wed, 20 Sep 2023 19:04:39 -0700 Subject: [PATCH] Use Enum instead of Enum class --- include/onnxruntime/core/providers/dml/dml_provider_factory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/onnxruntime/core/providers/dml/dml_provider_factory.h b/include/onnxruntime/core/providers/dml/dml_provider_factory.h index ce93bdd4bc25f..aefa491660143 100644 --- a/include/onnxruntime/core/providers/dml/dml_provider_factory.h +++ b/include/onnxruntime/core/providers/dml/dml_provider_factory.h @@ -30,13 +30,13 @@ typedef struct IDMLDevice IDMLDevice; extern "C" { #endif -enum class OrtDmlPerformancePreference { +enum OrtDmlPerformancePreference { Default = 0, HighPerformance = 1, LowPower = 2 }; -enum class OrtDmlDeviceFilter { +enum OrtDmlDeviceFilter { Gpu = 1, Npu = 2, Both = 3