diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2019-09-16 17:00:22 +0100 |
---|---|---|
committer | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2019-09-16 17:00:54 +0100 |
commit | 4dc64a69ba383ece509d442598617445a3b4847f (patch) | |
tree | b50cb259594aa0cf634a4c37657a2c7a50be0c6c /src/armnnUtils/TensorUtils.hpp | |
parent | a0c7871cf140d1e9cf59a213626ee534c0122c7f (diff) | |
download | armnn-4dc64a69ba383ece509d442598617445a3b4847f.tar.gz |
IVGCVSW-3694 Add ArgMinMax implementation for Ref
* Add ArgMinMax implementation
* Add utility function to get number of elements between axis
* Add utility function to get unsigned axis
* Unit tests for ArgMinMax function
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I7bc3d610dda9526190187eb87394a8ed7a4b5cdd
Diffstat (limited to 'src/armnnUtils/TensorUtils.hpp')
-rw-r--r-- | src/armnnUtils/TensorUtils.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/armnnUtils/TensorUtils.hpp b/src/armnnUtils/TensorUtils.hpp index 03b1c8a2df..2b1f6a24f3 100644 --- a/src/armnnUtils/TensorUtils.hpp +++ b/src/armnnUtils/TensorUtils.hpp @@ -26,4 +26,10 @@ std::pair<float, float> FindMinMax(armnn::ITensorHandle* tensorHandle); armnn::TensorShape ExpandDims(const armnn::TensorShape& tensorShape, int axis); +unsigned int GetNumElementsBetween(const armnn::TensorShape& shape, + unsigned int firstAxisInclusive, + unsigned int lastAxisExclusive); + +unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis); + } // namespace armnnUtils |