DefTruth / lite.ai.toolkit

🛠 A lite C++ toolkit of awesome AI models, support ONNXRuntime, MNN, TNN, NCNN and TensorRT.
https://github.com/DefTruth/lite.ai.toolkit
GNU General Public License v3.0
3.59k stars 684 forks source link

C++ 17 Exception error #351

Closed shersoni610 closed 4 months ago

shersoni610 commented 2 years ago

Hello,

in ort_utils.h, there is a compilation error on MAC

error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] unsigned int data_format = CHW) throw(std::runtime_error);

nguyenthuy1681999 commented 1 year ago

My solution: delete "throw(std::runtime_error)" https://rules.sonarsource.com/cpp/RSPEC-2303

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.