[Other] Fix some memory leak problem (#1422)

* Fix memory leak problem for paddleseg model

* Fix bug

* Update postprocessor.cc

---------

Co-authored-by: root <root@bjyz-sys-gpu-kongming3.bjyz.baidu.com>
This commit is contained in:
Jason
2023-02-23 16:03:40 +08:00
committed by GitHub
parent a1f9aa1c5a
commit 0c664fd006
4 changed files with 6 additions and 43 deletions

View File

@@ -80,10 +80,6 @@ class FASTDEPLOY_DECL PaddleSegPostprocessor {
const int64_t& out_num,
SegmentationResult* result);
virtual bool FDTensorCast2Uint8(FDTensor* infer_result,
const int64_t& offset,
std::vector<uint8_t>* uint8_result_buffer);
bool is_with_softmax_ = false;
bool is_with_argmax_ = true;