Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 28, 2024
1 parent 47225cd commit 9640ede
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/phonemizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ namespace DeepPhonemizer {
session_options.SetIntraOpNumThreads(1);
session_options.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_ALL);

const char *model_path_cstr = model_path.c_str();

session = new Ort::Session(env, model_path_cstr, session_options);
Ort::Session new_session(env, model_path.c_str(), session_options);
session = &new_session; // This cant be done in 1 line on windows for some reason

// Load metadata from the model
Ort::ModelMetadata model_metadata = session->GetModelMetadata();
Expand Down

0 comments on commit 9640ede

Please sign in to comment.