fix unitialized value in code scan (#11711)
This commit is contained in:
1 parent
016c5f537a
commit
2e4f14a9f7
2 files changed
+12
-13
No files matched your search
@@ -296,15 +296,14 @@ GenerateProposals::GenerateProposals
|
||||
IE_THROW(NotImplemented) << errorMessage;
|
||||
}
|
||||
|
||||
if (auto proposalOp = ngraph::as_type_ptr<const ngraph::op::v9::GenerateProposals>(op)) {
|
||||
auto proposalAttrs = proposalOp->get_attrs();
|
||||
auto proposalOp = ngraph::as_type_ptr<const ngraph::op::v9::GenerateProposals>(op);
|
||||
auto proposalAttrs = proposalOp->get_attrs();
|
||||
|
||||
min_size_ = proposalAttrs.min_size;
|
||||
nms_thresh_ = proposalAttrs.nms_threshold;
|
||||
pre_nms_topn_ = proposalAttrs.pre_nms_count;
|
||||
post_nms_topn_ = proposalAttrs.post_nms_count;
|
||||
coordinates_offset_ = proposalAttrs.normalized ? 0 : 1.0;
|
||||
}
|
||||
min_size_ = proposalAttrs.min_size;
|
||||
nms_thresh_ = proposalAttrs.nms_threshold;
|
||||
pre_nms_topn_ = proposalAttrs.pre_nms_count;
|
||||
post_nms_topn_ = proposalAttrs.post_nms_count;
|
||||
coordinates_offset_ = proposalAttrs.normalized ? 0.f : 1.f;
|
||||
|
||||
roi_indices_.resize(post_nms_topn_);
|
||||
}
|
||||
|
||||
@@ -45,11 +45,11 @@ private:
|
||||
const int OUTPUT_SCORES {1};
|
||||
const int OUTPUT_ROI_NUM {2};
|
||||
|
||||
float min_size_;
|
||||
int pre_nms_topn_;
|
||||
int post_nms_topn_;
|
||||
float nms_thresh_;
|
||||
float coordinates_offset_;
|
||||
float min_size_ = 0.f;
|
||||
int pre_nms_topn_ = 0;
|
||||
int post_nms_topn_ = 0;
|
||||
float nms_thresh_ = 0.f;
|
||||
float coordinates_offset_ = 0.f;
|
||||
|
||||
std::vector<int> roi_indices_;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user