Skip to content

Commit 740d7ae

Browse files
fixing bug and compiler error (#870)
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
1 parent 697b960 commit 740d7ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sherpa-onnx/csrc/audio-tagging-impl.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create(
2525
return std::make_unique<AudioTaggingCEDImpl>(config);
2626
}
2727

28-
SHERPA_ONNX_LOG(
28+
SHERPA_ONNX_LOGE(
2929
"Please specify an audio tagging model! Return a null pointer");
3030
return nullptr;
3131
}
@@ -39,7 +39,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create(
3939
return std::make_unique<AudioTaggingCEDImpl>(mgr, config);
4040
}
4141

42-
SHERPA_ONNX_LOG(
42+
SHERPA_ONNX_LOGE(
4343
"Please specify an audio tagging model! Return a null pointer");
4444
return nullptr;
4545
}

sherpa-onnx/csrc/keyword-spotter-transducer-impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class KeywordSpotterTransducerImpl : public KeywordSpotterImpl {
307307

308308
void InitOnlineStream(OnlineStream *stream) const {
309309
auto r = decoder_->GetEmptyResult();
310-
SHERPA_ONNX_CHECK_EQ(r.hyps.size(), 1);
310+
SHERPA_ONNX_CHECK_EQ(r.hyps.Size(), 1);
311311

312312
SHERPA_ONNX_CHECK(stream->GetContextGraph() != nullptr);
313313
r.hyps.begin()->second.context_state = stream->GetContextGraph()->Root();

0 commit comments

Comments
 (0)