diff --git a/paddlespeech/__init__.py b/paddlespeech/__init__.py index 4b1c0ef3dea750c0503909dd168624ca845baafb..b781c4a8e5cc99590e179faf1c4c3989349d4216 100644 --- a/paddlespeech/__init__.py +++ b/paddlespeech/__init__.py @@ -14,5 +14,3 @@ import _locale _locale._getdefaultlocale = (lambda *args: ['en_US', 'utf8']) - - diff --git a/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc b/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc index a04b1c86cec92432b5d4b739cbe0ce548781775a..46a78ef99b6c7defc131b0e489629748b109b37f 100644 --- a/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc +++ b/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc @@ -41,7 +41,9 @@ DEFINE_string( DEFINE_string(model_output_names, "softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0", "model output names"); -DEFINE_string(model_cache_names, "chunk_state_h_box,chunk_state_c_box", "model cache names"); +DEFINE_string(model_cache_names, + "chunk_state_h_box,chunk_state_c_box", + "model cache names"); DEFINE_string(model_cache_shapes, "5-1-1024,5-1-1024", "model cache shapes"); using kaldi::BaseFloat; diff --git a/speechx/examples/ds2_ol/decoder/wfst-decoder-ol.cc b/speechx/examples/ds2_ol/decoder/wfst-decoder-ol.cc index bbb27b39159d8ad4a920445735403fcd4ac00f5c..cb68a5a2c804c14e4329a6172cacae8384cc8b82 100644 --- a/speechx/examples/ds2_ol/decoder/wfst-decoder-ol.cc +++ b/speechx/examples/ds2_ol/decoder/wfst-decoder-ol.cc @@ -44,7 +44,9 @@ DEFINE_string( DEFINE_string(model_output_names, "softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0", "model output names"); -DEFINE_string(model_cache_names, "chunk_state_h_box,chunk_state_c_box", "model cache names"); +DEFINE_string(model_cache_names, + "chunk_state_h_box,chunk_state_c_box", + "model cache names"); DEFINE_string(model_cache_shapes, "5-1-1024,5-1-1024", "model cache shapes"); using kaldi::BaseFloat; diff --git a/speechx/examples/ds2_ol/feat/linear-spectrogram-wo-db-norm-ol.cc b/speechx/examples/ds2_ol/feat/linear-spectrogram-wo-db-norm-ol.cc index 0b066d6a51defc1c3a3f1bde8a21532ef51d4d4d..c3652ad4adab8205cd960d31580ca209f5dcd354 100644 --- a/speechx/examples/ds2_ol/feat/linear-spectrogram-wo-db-norm-ol.cc +++ b/speechx/examples/ds2_ol/feat/linear-spectrogram-wo-db-norm-ol.cc @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { int32 num_done = 0, num_err = 0; - // feature pipeline: wave cache --> hanning window + // feature pipeline: wave cache --> hanning window // -->linear_spectrogram --> global cmvn -> feat cache std::unique_ptr data_source( diff --git a/speechx/speechx/decoder/param.h b/speechx/speechx/decoder/param.h index cd68e5e9ab643e8b8ae9c25cf2d940f58bb442a3..ef56562121126d061a664f57da3b473042e31693 100644 --- a/speechx/speechx/decoder/param.h +++ b/speechx/speechx/decoder/param.h @@ -43,7 +43,9 @@ DEFINE_string( DEFINE_string(model_output_names, "softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0", "model output names"); -DEFINE_string(model_cache_names, "chunk_state_h_box,chunk_state_c_box", "model cache names"); +DEFINE_string(model_cache_names, + "chunk_state_h_box,chunk_state_c_box", + "model cache names"); DEFINE_string(model_cache_shapes, "5-1-1024,5-1-1024", "model cache shapes"); diff --git a/speechx/speechx/frontend/audio/audio_cache.h b/speechx/speechx/frontend/audio/audio_cache.h index c44dedddab3a3cc99875f3357038d306bae4ba15..4ebcd9474d1fe70398d5888589ba4223e9a63326 100644 --- a/speechx/speechx/frontend/audio/audio_cache.h +++ b/speechx/speechx/frontend/audio/audio_cache.h @@ -58,7 +58,7 @@ class AudioCache : public FrontendInterface { std::mutex mutex_; std::condition_variable ready_feed_condition_; kaldi::int32 timeout_; // millisecond - bool to_float32_; // int16 -> float32. used in linear_spectrogram + bool to_float32_; // int16 -> float32. used in linear_spectrogram DISALLOW_COPY_AND_ASSIGN(AudioCache); }; diff --git a/speechx/speechx/frontend/audio/mfcc.cc b/speechx/speechx/frontend/audio/mfcc.cc index 115d3367e887607ca9f041becd369cb9430a253e..bda1f96d71d587e46579c5cadc73ead3433eb9b5 100644 --- a/speechx/speechx/frontend/audio/mfcc.cc +++ b/speechx/speechx/frontend/audio/mfcc.cc @@ -30,7 +30,7 @@ using kaldi::Matrix; using std::vector; Mfcc::Mfcc(const MfccOptions& opts, - std::unique_ptr base_extractor) + std::unique_ptr base_extractor) : opts_(opts), computer_(opts.mfcc_opts), window_function_(computer_.GetFrameOptions()) { diff --git a/speechx/speechx/nnet/paddle_nnet.cc b/speechx/speechx/nnet/paddle_nnet.cc index 6cf6aa5e3dc21edf421f57a496c6119f599e1dea..881a82f51774763dc8cd02e5f7b79316d988a652 100644 --- a/speechx/speechx/nnet/paddle_nnet.cc +++ b/speechx/speechx/nnet/paddle_nnet.cc @@ -206,7 +206,7 @@ void PaddleNnet::FeedForward(const Vector& features, inferences->Resize(row * col); *inference_dim = col; output_tensor->CopyToCpu(inferences->Data()); - + ReleasePredictor(predictor); } diff --git a/speechx/speechx/nnet/paddle_nnet.h b/speechx/speechx/nnet/paddle_nnet.h index fdd51048cee675e3239179c14b2fae8427302de1..e2b3d5bc495ca1f15ab012de895b26486c2f2693 100644 --- a/speechx/speechx/nnet/paddle_nnet.h +++ b/speechx/speechx/nnet/paddle_nnet.h @@ -24,7 +24,7 @@ namespace ppspeech { struct ModelOptions { std::string model_path; std::string param_path; - int thread_num; // predictor thread pool size + int thread_num; // predictor thread pool size bool use_gpu; bool switch_ir_optim; std::string input_names;