Fix: improve compatibility with ORTCHAR_T

This commit is contained in:
Takayuki Matsuoka
2023-04-23 19:26:57 +09:00
parent 267cdda97d
commit 5cf014ff26

View File

@@ -43,7 +43,7 @@ void loadModel(string modelPath, ModelSession &session) {
session.options.DisableProfiling();
auto startTime = chrono::steady_clock::now();
session.onnx = Ort::Session(session.env, modelPath.c_str(), session.options);
session.onnx = Ort::Session(session.env, filesystem::path(modelPath).c_str(), session.options);
auto endTime = chrono::steady_clock::now();
auto loadDuration = chrono::duration<double>(endTime - startTime);
}