Support clang-tidy (#1034)

This commit is contained in:
Fangjun Kuang
2024-06-19 20:51:57 +08:00
committed by GitHub
parent 656b9fa1c8
commit a11c859971
63 changed files with 381 additions and 237 deletions

View File

@@ -192,15 +192,15 @@ class OnlineWenetCtcModel::Impl {
std::vector<std::string> output_names_;
std::vector<const char *> output_names_ptr_;
int32_t head_;
int32_t num_blocks_;
int32_t output_size_;
int32_t cnn_module_kernel_;
int32_t right_context_;
int32_t subsampling_factor_;
int32_t vocab_size_;
int32_t head_ = 0;
int32_t num_blocks_ = 0;
int32_t output_size_ = 0;
int32_t cnn_module_kernel_ = 0;
int32_t right_context_ = 0;
int32_t subsampling_factor_ = 0;
int32_t vocab_size_ = 0;
int32_t required_cache_size_;
int32_t required_cache_size_ = 0;
Ort::Value attn_cache_{nullptr};
Ort::Value conv_cache_{nullptr};