提交 be3a2a50 编写于 作者: Y Yang Zhou

fix normalizer bug

上级 6c2158e8
......@@ -107,7 +107,7 @@ void CMVN::Accept(const kaldi::VectorBase<kaldi::BaseFloat>& inputs) {
}
bool CMVN::Read(kaldi::Vector<BaseFloat>* feats) {
if (base_extractor_->Read(feats) == false) {
if (base_extractor_->Read(feats) == false || feats->Dim() == 0) {
return false;
}
Compute(feats);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册