aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/ITensorInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/core/ITensorInfo.h')
-rw-r--r--arm_compute/core/ITensorInfo.h7
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