Skip to content

Commit

Permalink
chore: include path of onnxruntime>=1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
horror-proton committed May 25, 2024
1 parent b5d1b88 commit 6de0794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/MaaCore/Config/OnnxSessions.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

#include <unordered_map>

#if __has_include(<onnxruntime_cxx_api.h>)
#include <onnxruntime_cxx_api.h>
#else
#include <onnxruntime/core/session/onnxruntime_cxx_api.h>
#endif

namespace asst
{
Expand Down
1 change: 0 additions & 1 deletion src/MaaCore/Vision/Battle/BattlefieldClassifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <array>
#include <cmath>

#include <onnxruntime/core/session/onnxruntime_cxx_api.h>

#include "Config/OnnxSessions.h"
#include "Config/TaskData.h"
Expand Down
1 change: 0 additions & 1 deletion src/MaaCore/Vision/Battle/BattlefieldDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <cmath>

#include "Utils/NoWarningCV.h"
#include <onnxruntime/core/session/onnxruntime_cxx_api.h>

#include "Config/Miscellaneous/TilePack.h"
#include "Config/OnnxSessions.h"
Expand Down

0 comments on commit 6de0794

Please sign in to comment.