Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 0 additions & 14 deletions src/feat/feature-common-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ void OfflineFeatureTpl<F>::ComputeFeatures(
}
}

template <class F>
void OfflineFeatureTpl<F>::ComputeFeatures(
const VectorBase<BaseFloat> &wave,
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *output) const {
OfflineFeatureTpl<F> temp(*this);
// This const version of ComputeFeatures() is a wrapper that
// calls the non-const ComputeFeatures() on a temporary object
// that is a copy of *this. It is not as efficient because of the
// overhead of copying *this.
temp.ComputeFeatures(wave, vtln_warp, output);
}

template <class F>
void OfflineFeatureTpl<F>::Compute(
const VectorBase<BaseFloat> &wave,
Expand Down
10 changes: 0 additions & 10 deletions src/feat/feature-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@ class OfflineFeatureTpl {
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *output);
/**
This const version of ComputeFeatures() is a wrapper that
calls the non-const ComputeFeatures() on a temporary object
that is a copy of *this. It is not as efficient because of the
overhead of copying *this.
*/
void ComputeFeatures(const VectorBase<BaseFloat> &wave,
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *output) const;

int32 Dim() const { return computer_.Dim(); }

Expand Down