!46182 [lite]Complete initialization for tensor to avoid unexpected problems

Merge pull request !46182 from 徐安越/r1.8_1
This commit is contained in:
i-robot 2022-11-29 13:55:33 +00:00 committed by Gitee
commit 331b35fabc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ class Tensor {
protected:
TensorC tensor_c_;
std::string tensor_name_;
Category category_;
Category category_{CONST_TENSOR};
std::atomic_int ref_count_ = {0};
int init_ref_count_ = 0;
std::vector<LiteQuantParam> quant_params_;