Skip to content

Commit

Permalink
fixing bug and compiler error (#870)
Browse files Browse the repository at this point in the history
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
  • Loading branch information
manickavela29 authored May 13, 2024
1 parent 697b960 commit 740d7ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sherpa-onnx/csrc/audio-tagging-impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create(
return std::make_unique<AudioTaggingCEDImpl>(config);
}

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

SHERPA_ONNX_LOG(
SHERPA_ONNX_LOGE(
"Please specify an audio tagging model! Return a null pointer");
return nullptr;
}
Expand Down
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/keyword-spotter-transducer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class KeywordSpotterTransducerImpl : public KeywordSpotterImpl {

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

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

0 comments on commit 740d7ae

Please sign in to comment.