Skip to content

Commit

Permalink
remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Dec 31, 2024
1 parent 62ad6c9 commit 247bf7e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions sherpa-onnx/csrc/offline-tts-matcha-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,36 +235,10 @@ class OfflineTtsMatchaImpl : public OfflineTtsImpl {
x.push_back(std::move(i.tokens));
}

if (config_.model.debug) {
std::ostringstream os;
os << "\n";
for (const auto &k : x) {
for (int32_t i : k) {
os << i << " ";
}
os << "\n";
}
os << "\n";
SHERPA_ONNX_LOGE("%s", os.str().c_str());
}

for (auto &k : x) {
k = AddBlank(k, meta_data.pad_id);
}

if (config_.model.debug) {
std::ostringstream os;
os << "\n";
for (const auto &k : x) {
for (int32_t i : k) {
os << i << " ";
}
os << "\n";
}
os << "\n";
SHERPA_ONNX_LOGE("%s", os.str().c_str());
}

int32_t x_size = static_cast<int32_t>(x.size());

if (config_.max_num_sentences <= 0 || x_size <= config_.max_num_sentences) {
Expand Down

0 comments on commit 247bf7e

Please sign in to comment.