From d56e770e7c394d13706a21ee350e7dafe4278987 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Wed, 28 Feb 2018 14:29:36 +0000 Subject: COMPMID-979: Add NHWC data layout to the tensor's metadata (Part 2) Change-Id: I24aa35a85834abf0c9954aba714aeae654615b44 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122646 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/core/SubTensorInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arm_compute/core/SubTensorInfo.h') diff --git a/arm_compute/core/SubTensorInfo.h b/arm_compute/core/SubTensorInfo.h index f9ed99b308..882e4ec1d0 100644 --- a/arm_compute/core/SubTensorInfo.h +++ b/arm_compute/core/SubTensorInfo.h @@ -127,6 +127,11 @@ public: { return _tensor_shape[index]; } + size_t dimension(DataLayoutDimension dimension) const override + { + ARM_COMPUTE_ERROR_ON(_parent == nullptr); + return get_data_layout_dimension_index(_parent->data_layout(), dimension); + } const Strides &strides_in_bytes() const override { ARM_COMPUTE_ERROR_ON(_parent == nullptr); -- cgit v1.2.1