aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/SubTensorInfo.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-02 13:18:55 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-02 15:38:01 +0000
commit49be2e32e697f3b7a124018bc3cee91adb5f9478 (patch)
treebb6569c7142226aac093f15904d28073f579666d /arm_compute/core/SubTensorInfo.h
parentae99b6eac40c7c3cb5eb465f3cbe4b522eff0488 (diff)
downloadComputeLibrary-49be2e32e697f3b7a124018bc3cee91adb5f9478.tar.gz
COMPMID-2644: Add is_dynamic flag to ITensorInfo.
Flag indicates if tensor shape is determined dynamically in kernel/function execution. Change-Id: I7f6f9557571316e1eaf8c7aaf9f5b9262c2e1751 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1850 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/SubTensorInfo.h')
-rw-r--r--arm_compute/core/SubTensorInfo.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/arm_compute/core/SubTensorInfo.h b/arm_compute/core/SubTensorInfo.h
index 681e27033e..3de31deb44 100644
--- a/arm_compute/core/SubTensorInfo.h
+++ b/arm_compute/core/SubTensorInfo.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -186,12 +186,23 @@ public:
ARM_COMPUTE_ERROR_ON(_parent == nullptr);
return _parent->is_resizable();
}
+ bool is_dynamic() const override
+ {
+ ARM_COMPUTE_ERROR_ON(_parent == nullptr);
+ return _parent->is_dynamic();
+ }
ITensorInfo &set_is_resizable(bool is_resizable) override
{
ARM_COMPUTE_ERROR_ON(_parent == nullptr);
_parent->set_is_resizable(is_resizable);
return *this;
}
+ ITensorInfo &set_is_dynamic(bool is_dynamic) override
+ {
+ ARM_COMPUTE_ERROR_ON(_parent == nullptr);
+ _parent->set_is_dynamic(is_dynamic);
+ return *this;
+ }
ValidRegion valid_region() const override
{
return _valid_region;
@@ -224,5 +235,5 @@ private:
ValidRegion _valid_region;
bool _extend_parent;
};
-}
+} // namespace arm_compute
#endif /*__ARM_COMPUTE_SUBTENSORINFO_H__ */