diff options
Diffstat (limited to 'arm_compute/core/Helpers.h')
-rw-r--r-- | arm_compute/core/Helpers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arm_compute/core/Helpers.h b/arm_compute/core/Helpers.h index c7c7110ef5..235657a38a 100644 --- a/arm_compute/core/Helpers.h +++ b/arm_compute/core/Helpers.h @@ -707,6 +707,15 @@ inline int coords2index(const TensorShape &shape, const Coordinates &coord); */ inline size_t get_data_layout_dimension_index(const DataLayout data_layout, const DataLayoutDimension data_layout_dimension); +/** Get the DataLayoutDimension of a given index and layout. + * + * @param[in] data_layout The data layout. + * @param[in] index The data layout index. + * + * @return The dimension which this index is requested for. + */ +inline DataLayoutDimension get_index_data_layout_dimension(const DataLayout data_layout, const size_t index); + /** Calculate the normalization dimension index for a given normalization type * * @param[in] layout Data layout of the input and output tensor |