diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-08-13 12:07:59 +0100 |
---|---|---|
committer | Giorgio Arena <giorgio.arena@arm.com> | 2021-08-13 16:15:07 +0000 |
commit | 45fbf9fd00cc8fa564229bd6e2c20f84bc7cafd1 (patch) | |
tree | 91dec2dc311cb0508abf788a5a8d6be99fb466f2 /src/core | |
parent | 37a4611dcbefc9ad19af803216d9e2cd5ec64697 (diff) | |
download | ComputeLibrary-45fbf9fd00cc8fa564229bd6e2c20f84bc7cafd1.tar.gz |
Avoid releasing weights if they are used by multiple functions
Resolves: COMPMID-4769
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: Iccadcbd68b0fd84ed3bf212e358a4ea944084a40
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/349845
Tested-by: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6107
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Reviewed-by: SiCong Li <sicong.li@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ITensor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 |