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 --- src/core/ITensor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/ITensor.cpp b/src/core/ITensor.cpp index e263596333..9ed9b3f2e9 100644 --- a/src/core/ITensor.cpp +++ b/src/core/ITensor.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -169,4 +169,9 @@ void ITensor::mark_as_unused() const { _is_used = false; } + +void ITensor::mark_as_used() const +{ + _is_used = true; +} } // namespace arm_compute \ No newline at end of file -- cgit v1.2.1