Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 1, 2024
1 parent 23cf003 commit 7295e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaaFramework/Resource/ONNXResMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ bool ONNXResMgr::use_gpu(int device_id)
LogInfo << VAR(all_providers);

bool support_cuda = false;
bool support_dml = false;
bool support_coreml = false;
[[maybe_unused]] bool support_dml = false;
[[maybe_unused]] bool support_coreml = false;
for (const auto& provider : all_providers) {
if (provider == "CUDAExecutionProvider") {
support_cuda = true;
Expand Down

0 comments on commit 7295e48

Please sign in to comment.