Commit 4ba51522 authored by mayong's avatar mayong
Browse files

Add RTF.

parent fbd84f8d
...@@ -9,6 +9,18 @@ ...@@ -9,6 +9,18 @@
"installRoot": "${projectDir}\\out\\install\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}",
"buildCommandArgs": "", "buildCommandArgs": "",
"ctestCommandArgs": "" "ctestCommandArgs": ""
},
{
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": []
} }
] ]
} }
\ No newline at end of file
...@@ -18,7 +18,7 @@ ModelImp::ModelImp(const char* path, int mode,int nNumThread) ...@@ -18,7 +18,7 @@ ModelImp::ModelImp(const char* path, int mode,int nNumThread)
sessionOptions.SetInterOpNumThreads(nNumThread); //sessionOptions.SetInterOpNumThreads(nNumThread);
sessionOptions.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_EXTENDED); sessionOptions.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_EXTENDED);
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -51,8 +51,11 @@ int main(int argc, char *argv[]) ...@@ -51,8 +51,11 @@ int main(int argc, char *argv[])
cout << "\"." << endl; cout << "\"." << endl;
seconds = (end.tv_sec - start.tv_sec); seconds = (end.tv_sec - start.tv_sec);
micros = ((seconds * 1000000) + end.tv_usec) - (start.tv_usec); long taking_micros = ((seconds * 1000000) + end.tv_usec) - (start.tv_usec);
printf("Model inference takes %lfs.\n", (double)micros / 1000000); printf("Model inference takes %lfs.\n", (double)micros / 1000000);
printf("Model inference RTF %04lf.\n", (double)taking_micros/micros );
delete mm; delete mm;
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment