aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/SubTensorInfo.h
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2018-02-27 17:41:55 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:48:33 +0000
commitd17a677a70d477ae508c084148ba6974fc38477d (patch)
treedf6719551b1125941ecdfe4889826b0daa92088b /arm_compute/core/SubTensorInfo.h
parent240cfa65322da0c9b2ec0e78960ff4bd87c7573e (diff)
downloadComputeLibrary-d17a677a70d477ae508c084148ba6974fc38477d.tar.gz
COMPMID-979: Add NHWC data layout to the tensor's metadata
Change-Id: I89bdab7dc63a437eb7d60c0ae652c53c3875e503 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122524 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'arm_compute/core/SubTensorInfo.h')
-rw-r--r--arm_compute/core/SubTensorInfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arm_compute/core/SubTensorInfo.h b/arm_compute/core/SubTensorInfo.h
index 7f4239d49b..f9ed99b308 100644
--- a/arm_compute/core/SubTensorInfo.h
+++ b/arm_compute/core/SubTensorInfo.h
@@ -80,6 +80,12 @@ public:
_parent->set_data_type(data_type);
return *this;
};
+ ITensorInfo &set_data_layout(const DataLayout &data_layout) override
+ {
+ ARM_COMPUTE_ERROR_ON(_parent == nullptr);
+ _parent->set_data_layout(data_layout);
+ return *this;
+ };
ITensorInfo &set_num_channels(int num_channels) override
{
ARM_COMPUTE_ERROR_ON(_parent == nullptr);
@@ -211,6 +217,11 @@ public:
ARM_COMPUTE_ERROR_ON(_parent == nullptr);
return _parent->quantization_info();
}
+ DataLayout data_layout() const override
+ {
+ ARM_COMPUTE_ERROR_ON(_parent == nullptr);
+ return _parent->data_layout();
+ }
private:
ITensorInfo *_parent;