remove unnecessary log

pull/1599/head
Yang Zhou 3 years ago
parent 90d6b6f15d
commit 1f23c4bd24

@ -136,14 +136,16 @@ int main(int argc, char* argv[]) {
} }
std::string result; std::string result;
result = decoder.GetFinalBestPath(); result = decoder.GetFinalBestPath();
KALDI_LOG << " the result of " << utt << " is " << result; decodable->Reset();
decoder.Reset();
if (result.empty()) { if (result.empty()) {
// the TokenWriter can not write empty string. // the TokenWriter can not write empty string.
result = " "; ++num_err;
KALDI_LOG << " the result of " << utt << " is empty";
continue;
} }
KALDI_LOG << " the result of " << utt << " is " << result;
result_writer.Write(utt, result); result_writer.Write(utt, result);
decodable->Reset();
decoder.Reset();
++num_done; ++num_done;
} }

@ -139,14 +139,16 @@ int main(int argc, char* argv[]) {
} }
std::string result; std::string result;
result = decoder.GetFinalBestPath(); result = decoder.GetFinalBestPath();
KALDI_LOG << " the result of " << utt << " is " << result; decodable->Reset();
decoder.Reset();
if (result.empty()) { if (result.empty()) {
// the TokenWriter can not write empty string. // the TokenWriter can not write empty string.
result = " "; ++num_err;
KALDI_LOG << " the result of " << utt << " is empty";
continue;
} }
KALDI_LOG << " the result of " << utt << " is " << result;
result_writer.Write(utt, result); result_writer.Write(utt, result);
decodable->Reset();
decoder.Reset();
++num_done; ++num_done;
} }

@ -78,7 +78,6 @@ bool Decodable::AdvanceChunk() {
frame_offset_ = frames_ready_; frame_offset_ = frames_ready_;
frames_ready_ += nnet_cache_.NumRows(); frames_ready_ += nnet_cache_.NumRows();
LOG(INFO) << "nnet size: " << nnet_cache_.NumRows();
return true; return true;
} }

@ -177,7 +177,6 @@ void PaddleNnet::FeedForward(const Vector<BaseFloat>& features,
LOG(INFO) << "predictor run occurs error"; LOG(INFO) << "predictor run occurs error";
} }
LOG(INFO) << "get the model success";
std::unique_ptr<paddle_infer::Tensor> h_out = std::unique_ptr<paddle_infer::Tensor> h_out =
predictor->GetOutputHandle(output_names[2]); predictor->GetOutputHandle(output_names[2]);
assert(h_cache->get_shape() == h_out->shape()); assert(h_cache->get_shape() == h_out->shape());

Loading…
Cancel
Save