diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2022-12-07 11:50:50 +0000 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-12-12 20:09:36 +0000 |
commit | b30e6554ad41f21c8326e387aa2c1f8a5d4e6445 (patch) | |
tree | 7267ad8027a9eed45348b3808da5fcf901b0b767 /src/backends/tosaReference/test/TosaRefEndToEndTests.cpp | |
parent | ec67a0f08e0f96a5aebf3cac65331c67f6649f5e (diff) | |
download | armnn-b30e6554ad41f21c8326e387aa2c1f8a5d4e6445.tar.gz |
IVGCVSW-7174 Add Reshape support to TOSA Reference Backend
* Spelling corrections and code refactors added to TosaCommon
* TosaDTypeToString() implemented and used in TosaRef IsLayerSupported()
instead of enum integer.
* Using namespace armnn in TosaCommon OneToOneMappingTests and
TosaReference TosaRefLayerSupportTests instead of armnn::ClassName.
* Updated VerifyTosaAttribute() to also verify certain attributes
from input and output shapes.
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: I71dfca404d081a665f748ab724153c6dc36b7eca
Diffstat (limited to 'src/backends/tosaReference/test/TosaRefEndToEndTests.cpp')
-rw-r--r-- | src/backends/tosaReference/test/TosaRefEndToEndTests.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/backends/tosaReference/test/TosaRefEndToEndTests.cpp b/src/backends/tosaReference/test/TosaRefEndToEndTests.cpp index 4245f0d4c4..aaf8a678e3 100644 --- a/src/backends/tosaReference/test/TosaRefEndToEndTests.cpp +++ b/src/backends/tosaReference/test/TosaRefEndToEndTests.cpp @@ -8,6 +8,7 @@ #include "backendsCommon/test/AdditionEndToEndTestImpl.hpp" #include "backendsCommon/test/Convolution2dEndToEndTestImpl.hpp" #include "backendsCommon/test/Pooling2dEndToEndTestImpl.hpp" +#include "backendsCommon/test/ReshapeEndToEndTestImpl.hpp" #include <doctest/doctest.h> @@ -74,4 +75,20 @@ TEST_CASE("TosaRefAvgPool2DIgnoreValueEndtoEndTestFloat32") AvgPool2dEndToEnd<DataType::Float32>(tosaDefaultBackends, PaddingMethod::IgnoreValue); } +// Reshape +TEST_CASE("TosaRefReshapeEndtoEndTestFloat32") +{ + ReshapeEndToEnd<DataType::Float32>(tosaDefaultBackends); +} + +TEST_CASE("TosaRefReshapeEndtoEndTestInt32") +{ + ReshapeEndToEnd<DataType::Signed32>(tosaDefaultBackends); +} + +TEST_CASE("TosaRefReshapeEndtoEndTestFloat16") +{ + ReshapeEndToEndFloat16<DataType::Float16>(tosaDefaultBackends); +} + }
\ No newline at end of file |