mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-29 03:04:50 +00:00
Fix: improve compatibility with ORTCHAR_T
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user