Skip to content

Commit

Permalink
add casts
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 30, 2024
1 parent 615dfde commit c5cd41c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,7 @@ else()
)
endif()

target_link_directories(
babylon PUBLIC
${BABYLON_LIB_INSTALL_DIR}
)

if(WIN32)
target_link_libraries(
babylon
onnxruntime
)
elseif(APPLE)
if(APPLE)
target_link_libraries(
babylon
onnxruntime
Expand Down
2 changes: 1 addition & 1 deletion src/phonemizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace DeepPhonemizer {
session_options.SetIntraOpNumThreads(1);
session_options.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_ALL);

session = new Ort::Session(env, model_path.c_str(), session_options);
session = new Ort::Session(env, (const ORTCHAR_T *) model_path.c_str(), session_options);

// Load metadata from the model
Ort::ModelMetadata model_metadata = session->GetModelMetadata();
Expand Down
2 changes: 1 addition & 1 deletion src/voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace Vits {
session_options.DisableMemPattern();
session_options.DisableProfiling();

session = new Ort::Session(env, model_path.c_str(), session_options);
session = new Ort::Session(env, (const ORTCHAR_T *) model_path.c_str(), session_options);

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

0 comments on commit c5cd41c

Please sign in to comment.