From c26871ad307a378f50c531c00a4aeaef1be2714a Mon Sep 17 00:00:00 2001 From: mingmingtasd Date: Mon, 15 Aug 2022 16:28:48 +0800 Subject: [PATCH] Disable dml flag in Instance .cpp --- src/webnn/native/Instance.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/webnn/native/Instance.cpp b/src/webnn/native/Instance.cpp index e6beb5297..c87ee22b6 100644 --- a/src/webnn/native/Instance.cpp +++ b/src/webnn/native/Instance.cpp @@ -28,11 +28,11 @@ namespace webnn::native { // Forward definitions of each backend's "Connect" function that creates new BackendConnection. // Conditionally compiled declarations are used to avoid using static constructors instead. -#if defined(WEBNN_ENABLE_BACKEND_DML) - namespace dml { - BackendConnection* Connect(InstanceBase* instance); - } -#endif // defined(WEBNN_ENABLE_BACKEND_DML) +// #if defined(WEBNN_ENABLE_BACKEND_DML) +// namespace dml { +// BackendConnection* Connect(InstanceBase* instance); +// } +// #endif // defined(WEBNN_ENABLE_BACKEND_DML) #if defined(WEBNN_ENABLE_BACKEND_DMLX) namespace dmlx { BackendConnection* Connect(InstanceBase* instance); @@ -76,9 +76,9 @@ namespace webnn::native { #if defined(WEBNN_ENABLE_BACKEND_NULL) enabledBackends.set(wnn::BackendType::Null); #endif // defined(WEBNN_ENABLE_BACKEND_NULL) -#if defined(WEBNN_ENABLE_BACKEND_DML) - enabledBackends.set(wnn::BackendType::DirectML); -#endif // defined(WEBNN_ENABLE_BACKEND_DML) +// #if defined(WEBNN_ENABLE_BACKEND_DML) +// enabledBackends.set(wnn::BackendType::DirectML); +// #endif // defined(WEBNN_ENABLE_BACKEND_DML) #if defined(WEBNN_ENABLE_BACKEND_DMLX) enabledBackends.set(wnn::BackendType::DirectMLX); #endif // defined(WEBNN_ENABLE_BACKEND_DMLX) @@ -137,11 +137,11 @@ namespace webnn::native { break; #endif // defined(WEBNN_ENABLE_BACKEND_NULL) -#if defined(WEBNN_ENABLE_BACKEND_DML) - case wnn::BackendType::DirectML: - Register(dml::Connect(this), wnn::BackendType::DirectML); - break; -#endif // defined(WEBNN_ENABLE_BACKEND_DML) + // #if defined(WEBNN_ENABLE_BACKEND_DML) + // case wnn::BackendType::DirectML: + // Register(dml::Connect(this), wnn::BackendType::DirectML); + // break; + // #endif // defined(WEBNN_ENABLE_BACKEND_DML) #if defined(WEBNN_ENABLE_BACKEND_DMLX) case wnn::BackendType::DirectMLX: