diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2023-11-21 15:44:13 +0000 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-12-13 14:33:54 +0000 |
commit | ce65588484ed1e553bdebf24123a30b5575f1bce (patch) | |
tree | ba5229241cdeee6d9c6ed0c0db9ffbd510574b34 /src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp | |
parent | 1685bcca5dae227d90be62b36d66e9897298ce84 (diff) | |
download | armnn-ce65588484ed1e553bdebf24123a30b5575f1bce.tar.gz |
Add Resize Nearest Neighbour support to TOSA Reference Backend
* Add support for quantized data in TosaRefPreCompiledWorkloadGetOutput.
* Remove extra includes from all TOSA operators headers.
* Added positive and negative unit tests for resize.
* Resolves: IVGCVSW-7346
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ib6e30d018a7a1bf26b380fc794560aae108b26c3
Diffstat (limited to 'src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp')
-rw-r--r-- | src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp b/src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp index e32894f0b6..fb4c84f07c 100644 --- a/src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp +++ b/src/backends/tosaReference/test/TosaRefLayerSupportTests.cpp @@ -352,6 +352,30 @@ TEST_CASE("IsLayerSupportedTosaReferenceReshape") CHECK(supported); } +TEST_CASE("IsLayerSupportedTosaReferenceResize") +{ + TensorShape inShape = { 1, 720, 1280, 3 }; + TensorShape outShape = { 1, 1080, 1920, 3 }; + TensorInfo in(inShape, DataType::Float32); + TensorInfo out(outShape, DataType::Float32); + + ResizeDescriptor descriptor; + descriptor.m_DataLayout = armnn::DataLayout::NHWC; + descriptor.m_TargetHeight = 1080; + descriptor.m_TargetWidth = 1920; + + TosaRefLayerSupport supportChecker; + std::string reasonIfNotSupported; + auto supported = supportChecker.IsLayerSupported(LayerType::Resize, + {in, out}, + descriptor, + EmptyOptional(), + EmptyOptional(), + reasonIfNotSupported); + + CHECK(supported); +} + TEST_CASE("IsLayerSupportedTosaReferenceReshapeUnsupported") { TensorShape inShape = {3,4}; |