diff --git a/src/feat/signal.cc b/src/feat/signal.cc index 19b876989c2..e8fbb0b84cf 100644 --- a/src/feat/signal.cc +++ b/src/feat/signal.cc @@ -34,7 +34,7 @@ void ElementwiseProductOfFft(const Vector &a, Vector *b) { void ConvolveSignals(const Vector &filter, Vector *signal) { int32 signal_length = signal->Dim(); int32 filter_length = filter.Dim(); - Vector signal_padded(signal_length + filter_length - 1); + Vector signal_padded(signal_length + filter_length - 1); signal_padded.SetZero(); for (int32 i = 0; i < signal_length; i++) { for (int32 j = 0; j < filter_length; j++) { @@ -54,11 +54,11 @@ void FFTbasedConvolveSignals(const Vector &filter, Vector SplitRadixRealFft srfft(fft_length); - Vector filter_padded(fft_length); + Vector filter_padded(fft_length); filter_padded.Range(0, filter_length).CopyFromVec(filter); srfft.Compute(filter_padded.Data(), true); - Vector signal_padded(fft_length); + Vector signal_padded(fft_length); signal_padded.Range(0, signal_length).CopyFromVec(*signal); srfft.Compute(signal_padded.Data(), true); @@ -83,13 +83,13 @@ void FFTbasedBlockConvolveSignals(const Vector &filter, Vector srfft(fft_length); - Vector filter_padded(fft_length); + Vector filter_padded(fft_length); filter_padded.Range(0, filter_length).CopyFromVec(filter); srfft.Compute(filter_padded.Data(), true); - Vector temp_pad(filter_length - 1); + Vector temp_pad(filter_length - 1); temp_pad.SetZero(); - Vector signal_block_padded(fft_length); + Vector signal_block_padded(fft_length); for (int32 po = 0; po < signal_length; po += block_length) { // get a block of the signal diff --git a/src/lm/kaldi-rnnlm.cc b/src/lm/kaldi-rnnlm.cc index e1fbcbdc08b..3a811c4c0e5 100644 --- a/src/lm/kaldi-rnnlm.cc +++ b/src/lm/kaldi-rnnlm.cc @@ -58,8 +58,8 @@ KaldiRnnlmWrapper::KaldiRnnlmWrapper( BaseFloat KaldiRnnlmWrapper::GetLogProb( int32 word, const std::vector &wseq, - const std::vector &context_in, - std::vector *context_out) { + const std::vector &context_in, + std::vector *context_out) { std::vector wseq_symbols(wseq.size()); for (int32 i = 0; i < wseq_symbols.size(); ++i) { @@ -79,7 +79,7 @@ RnnlmDeterministicFst::RnnlmDeterministicFst(int32 max_ngram_order, // Uses empty history for . std::vector