Skip to content

Commit

Permalink
fix cpplint check error
Browse files Browse the repository at this point in the history
  • Loading branch information
zuowanbushiwo authored Sep 26, 2023
1 parent 416840e commit 40bb359
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/core/speaker/onnx_speaker_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ OnnxSpeakerModel::OnnxSpeakerModel(const std::string& model_path) {
GraphOptimizationLevel::ORT_ENABLE_EXTENDED);
// 1. Load sessions
#ifdef _MSC_VER
speaker_session_ = std::make_shared<Ort::Session>(env_, ToWString(model_path).c_str(),
session_options_);
#else
speaker_session_ = std::make_shared<Ort::Session>(env_, model_path.c_str(),
session_options_);
speaker_session_ = std::make_shared<Ort::Session>(
env_, ToWString(model_path).c_str(),session_options_);
#else
speaker_session_ = std::make_shared<Ort::Session>(
env_, model_path.c_str(),session_options_);
#endif
// 2. Model info
Ort::AllocatorWithDefaultOptions allocator;
Expand Down

0 comments on commit 40bb359

Please sign in to comment.