You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
328 B

  1. #include <iostream>
  2. #include "onnxruntime_cxx_api.h" // NOLINT
  3. using namespace std;
  4. int main() {
  5. // 初始化ONNX Runtime
  6. Ort::SessionOptions opt = Ort::SessionOptions();
  7. Ort::Env env = Ort::Env(ORT_LOGGING_LEVEL_WARNING, "");
  8. opt.SetIntraOpNumThreads(1);
  9. printf("Run ONNX Done..%d,%f\n");
  10. return 0;
  11. }