mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-01 23:30:35 +00:00
fixed type to experimental session constructor (#6950)
* fixed type to experimental session constructor Co-authored-by: David Medine <david.medine@brainproducts.com>
This commit is contained in:
parent
4884eee642
commit
f723ff2285
2 changed files with 14 additions and 0 deletions
|
|
@ -60,7 +60,14 @@ int main(int argc, char** argv) {
|
|||
cout << "Usage: ./onnx-api-example <onnx_model.onnx>" << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string str = argv[1];
|
||||
std::wstring wide_string = std::wstring(str.begin(), str.end());
|
||||
std::basic_string<ORTCHAR_T> model_file = std::basic_string<ORTCHAR_T>(wide_string);
|
||||
#else
|
||||
std::string model_file = argv[1];
|
||||
#endif
|
||||
|
||||
// onnxruntime setup
|
||||
Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "batch-model-explorer");
|
||||
|
|
|
|||
|
|
@ -49,7 +49,14 @@ int main(int argc, char** argv) {
|
|||
cout << "Usage: ./onnx-api-example <onnx_model.onnx>" << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string str = argv[1];
|
||||
std::wstring wide_string = std::wstring(str.begin(), str.end());
|
||||
std::basic_string<ORTCHAR_T> model_file = std::basic_string<ORTCHAR_T>(wide_string);
|
||||
#else
|
||||
std::string model_file = argv[1];
|
||||
#endif
|
||||
|
||||
// onnxruntime setup
|
||||
Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "example-model-explorer");
|
||||
|
|
|
|||
Loading…
Reference in a new issue