From 45fbf9fd00cc8fa564229bd6e2c20f84bc7cafd1 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 13 Aug 2021 12:07:59 +0100 Subject: Avoid releasing weights if they are used by multiple functions Resolves: COMPMID-4769 Signed-off-by: Georgios Pinitas Change-Id: Iccadcbd68b0fd84ed3bf212e358a4ea944084a40 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/349845 Tested-by: bsgcomp Reviewed-by: Giorgio Arena Comments-Addressed: bsgcomp Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6107 Reviewed-by: Gian Marco Iodice Reviewed-by: SiCong Li Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/core/ITensor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arm_compute/core/ITensor.h') diff --git a/arm_compute/core/ITensor.h b/arm_compute/core/ITensor.h index 131ee205ea..32b93576bd 100644 --- a/arm_compute/core/ITensor.h +++ b/arm_compute/core/ITensor.h @@ -90,6 +90,8 @@ public: bool is_used() const; /** Marks a tensor as unused */ void mark_as_unused() const; + /** Marks a tensor as used */ + void mark_as_used() const; private: mutable bool _is_used = { true }; /**< Flag that marks if the tensor is used or not */ -- cgit v1.2.1