diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2018-02-28 14:29:36 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:48:33 +0000 |
commit | d56e770e7c394d13706a21ee350e7dafe4278987 (patch) | |
tree | 2f06e9b2857a9020ea2c1d60982112bb2eabda4c /arm_compute/core/ITensorInfo.h | |
parent | 847864df46cea578bb0766c17c95ad5e804c49c3 (diff) | |
download | ComputeLibrary-d56e770e7c394d13706a21ee350e7dafe4278987.tar.gz |
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 <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/ITensorInfo.h')
-rw-r--r-- | arm_compute/core/ITensorInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arm_compute/core/ITensorInfo.h b/arm_compute/core/ITensorInfo.h index 50a1eb2ff1..167fb41bb3 100644 --- a/arm_compute/core/ITensorInfo.h +++ b/arm_compute/core/ITensorInfo.h @@ -132,6 +132,13 @@ public: * @return Dimension of the requested dimension */ virtual size_t dimension(size_t index) const = 0; + /** Return the size of the requested data layout dimension + * + * @param[in] dimension DataLayoutDimension of the dimension + * + * @return Dimension of the requested dimension + */ + virtual size_t dimension(DataLayoutDimension dimension) const = 0; /** The strides in bytes for accessing each dimension of the tensor * * @return Strides in bytes for each tensor dimension |