diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2018-12-20 16:19:12 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-12-20 17:06:47 +0000 |
commit | f446432f4c21a64ffb92552c5e1906194fb98558 (patch) | |
tree | ee241e0816f02b7ee8a6c1be9cbf7b18eb3d0f26 /src/backends/aclCommon | |
parent | 2262bbd746907b28f5a5c2f36c153503884a8b8f (diff) | |
download | armnn-f446432f4c21a64ffb92552c5e1906194fb98558.tar.gz |
IVGCVSW-2164 Added ACL implementation of SpaceToBatchNd operation to ArmNN
!android-nn-driver:428
Change-Id: I42e59ad96d2c80f46b085182855d34b710a74dfe
Diffstat (limited to 'src/backends/aclCommon')
-rw-r--r-- | src/backends/aclCommon/ArmComputeTensorUtils.cpp | 5 | ||||
-rw-r--r-- | src/backends/aclCommon/ArmComputeTensorUtils.hpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/backends/aclCommon/ArmComputeTensorUtils.cpp b/src/backends/aclCommon/ArmComputeTensorUtils.cpp index ba7cd14f3f..6b55948693 100644 --- a/src/backends/aclCommon/ArmComputeTensorUtils.cpp +++ b/src/backends/aclCommon/ArmComputeTensorUtils.cpp @@ -159,5 +159,10 @@ arm_compute::PermutationVector BuildArmComputePermutationVector(const armnn::Per return aclPerm; } +arm_compute::Size2D BuildArmComputeSize2D(const unsigned int width, const unsigned int height) +{ + return arm_compute::Size2D(width, height); +} + } // namespace armcomputetensorutils } // namespace armnn diff --git a/src/backends/aclCommon/ArmComputeTensorUtils.hpp b/src/backends/aclCommon/ArmComputeTensorUtils.hpp index 18f41ee173..2a14d6548c 100644 --- a/src/backends/aclCommon/ArmComputeTensorUtils.hpp +++ b/src/backends/aclCommon/ArmComputeTensorUtils.hpp @@ -10,6 +10,7 @@ #include <arm_compute/core/ITensor.h> #include <arm_compute/core/TensorInfo.h> #include <arm_compute/core/Types.h> +#include <arm_compute/core/Size2D.h> #include <boost/cast.hpp> @@ -49,6 +50,9 @@ arm_compute::NormalizationLayerInfo BuildArmComputeNormalizationLayerInfo(const /// Utility function used to setup an arm_compute::PermutationVector object from an armnn::PermutationVector. arm_compute::PermutationVector BuildArmComputePermutationVector(const armnn::PermutationVector& vector); +/// Utility function used to setup an arm_compute::Size2D object from width and height values. +arm_compute::Size2D BuildArmComputeSize2D(const unsigned int width, const unsigned int height); + /// Utility function used to setup an arm_compute::PadStrideInfo object from an armnn layer descriptor. template <typename Descriptor> arm_compute::PadStrideInfo BuildArmComputePadStrideInfo(const Descriptor &descriptor) |