#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;
|
|
}
|