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.
 
 
 

13 lines
328 B

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