Committed by
GitHub
fixing bug and compiler error (#870)
Signed-off-by: manickavela1998@gmail.com <manickavela1998@gmail.com>
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -25,7 +25,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create( | @@ -25,7 +25,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create( | ||
| 25 | return std::make_unique<AudioTaggingCEDImpl>(config); | 25 | return std::make_unique<AudioTaggingCEDImpl>(config); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | - SHERPA_ONNX_LOG( | 28 | + SHERPA_ONNX_LOGE( |
| 29 | "Please specify an audio tagging model! Return a null pointer"); | 29 | "Please specify an audio tagging model! Return a null pointer"); |
| 30 | return nullptr; | 30 | return nullptr; |
| 31 | } | 31 | } |
| @@ -39,7 +39,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create( | @@ -39,7 +39,7 @@ std::unique_ptr<AudioTaggingImpl> AudioTaggingImpl::Create( | ||
| 39 | return std::make_unique<AudioTaggingCEDImpl>(mgr, config); | 39 | return std::make_unique<AudioTaggingCEDImpl>(mgr, config); |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | - SHERPA_ONNX_LOG( | 42 | + SHERPA_ONNX_LOGE( |
| 43 | "Please specify an audio tagging model! Return a null pointer"); | 43 | "Please specify an audio tagging model! Return a null pointer"); |
| 44 | return nullptr; | 44 | return nullptr; |
| 45 | } | 45 | } |
| @@ -307,7 +307,7 @@ class KeywordSpotterTransducerImpl : public KeywordSpotterImpl { | @@ -307,7 +307,7 @@ class KeywordSpotterTransducerImpl : public KeywordSpotterImpl { | ||
| 307 | 307 | ||
| 308 | void InitOnlineStream(OnlineStream *stream) const { | 308 | void InitOnlineStream(OnlineStream *stream) const { |
| 309 | auto r = decoder_->GetEmptyResult(); | 309 | auto r = decoder_->GetEmptyResult(); |
| 310 | - SHERPA_ONNX_CHECK_EQ(r.hyps.size(), 1); | 310 | + SHERPA_ONNX_CHECK_EQ(r.hyps.Size(), 1); |
| 311 | 311 | ||
| 312 | SHERPA_ONNX_CHECK(stream->GetContextGraph() != nullptr); | 312 | SHERPA_ONNX_CHECK(stream->GetContextGraph() != nullptr); |
| 313 | r.hyps.begin()->second.context_state = stream->GetContextGraph()->Root(); | 313 | r.hyps.begin()->second.context_state = stream->GetContextGraph()->Root(); |
-
请 注册 或 登录 后发表评论