Skip to content

Commit

Permalink
Merge pull request #293 from mingmingtasd/instance
Browse files Browse the repository at this point in the history
Disable dml flag in Instance .cpp
  • Loading branch information
fujunwei authored Aug 15, 2022
2 parents 294de6b + c26871a commit 95d84e0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/webnn/native/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 95d84e0

Please sign in to comment.