diff options
author | Ramy Elgammal <ramy.elgammal@arm.com> | 2022-12-22 15:21:03 +0000 |
---|---|---|
committer | Ramy Elgammal <ramy.elgammal@arm.com> | 2023-01-09 15:41:02 +0000 |
commit | d2d9361a0a338bce478f7d85b4af70d1ed20f26c (patch) | |
tree | d7f8491bb1175a0a0fb28bc916e2078e2947e4e2 /arm_compute/core/TensorInfo.h | |
parent | f800adf185e966b16385f65b9c7250766949dbe4 (diff) | |
download | ComputeLibrary-d2d9361a0a338bce478f7d85b4af70d1ed20f26c.tar.gz |
Add extend padding lock flag
- ITensorInfo's padding cannot be extended if its lock_paddings flag is set to True.
Resolves: COMPMID-5714
Signed-off-by: Ramy Elgammal <ramy.elgammal@arm.com>
Change-Id: I6bca9bbf7172822af60562310578c438b9e15f46
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8875
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: SiCong Li <sicong.li@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/TensorInfo.h')
-rw-r--r-- | arm_compute/core/TensorInfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arm_compute/core/TensorInfo.h b/arm_compute/core/TensorInfo.h index 7eb8c52d07..8436407a75 100644 --- a/arm_compute/core/TensorInfo.h +++ b/arm_compute/core/TensorInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2022 Arm Limited. + * Copyright (c) 2016-2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -201,6 +201,8 @@ public: ITensorInfo &set_data_layout(const DataLayout &data_layout) override; ITensorInfo &reset_padding() override; bool auto_padding() override; + ITensorInfo &set_lock_paddings(bool flag) override; + bool lock_paddings() const override; bool extend_padding(const PaddingSize &padding) override; size_t dimension(size_t index) const override { @@ -330,6 +332,7 @@ private: DataLayout _data_layout; bool _are_values_constant; ITensorInfo::Id _id; + bool _lock_paddings; }; /** Check whether two tensor info are equal. |