Merge pull request #1600 from SmileGoat/fix_speechx_feats

[Speechx]fix normalizer bug
pull/1602/head
Hui Zhang 3 years ago committed by GitHub
commit d48dc8ac63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save