Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed -Wreordered warnings in feat #3090

Merged
merged 9 commits into from
Mar 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[feat] more detailed error message
  • Loading branch information
Piotr Żelasko committed Feb 15, 2019
commit fdaa42bf31c8730a24f24aac93773969d99cb74d
4 changes: 3 additions & 1 deletion src/feat/online-feature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ RecyclingVector::~RecyclingVector() {
Vector<BaseFloat> *RecyclingVector::Retrieve(int index) const {
if (index < first_available_index_) {
KALDI_ERR << "Attempted to retrieve feature vector that was "
"already removed by the RecyclingVector";
"already removed by the RecyclingVector (index = " << index << "; "
<< "first_available_index = " << first_available_index_ << "; "
<< "size = " << Size() << ")";
}
// 'at' does size checking.
return items_.at(index - first_available_index_);
Expand Down