From 074f371bcd1d91c1f36b458d9ea1b050eafe5947 Mon Sep 17 00:00:00 2001 From: James Conroy Date: Wed, 3 Oct 2018 09:32:03 +0100 Subject: IVGCVSW-1932: Add Unit tests for NHWC ResizeBilinear * Adds five unit tests that execute ResizeBilinear with the NHWC data layout and Float32 data type. * Refactors original ResizeBilinear Float32 tests to take DataLayout as a parameter. * Adds four unit tests that execute CreateWorkloadCl for both NCHW and NHWC (NCHW tests did not exist for CreateWorkloadCl). Change-Id: I1af419ed0b62b8f4d4550f6d120a584a0a223b17 --- src/backends/test/LayerTests.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/backends/test/LayerTests.hpp') diff --git a/src/backends/test/LayerTests.hpp b/src/backends/test/LayerTests.hpp index 12bcdd8bbc..71a468b36b 100644 --- a/src/backends/test/LayerTests.hpp +++ b/src/backends/test/LayerTests.hpp @@ -243,6 +243,13 @@ LayerTestResult ResizeBilinearMinTest(armnn::IWorkloadFactory& workloa // Tests the resize bilinear for magnification (output dimensions bigger than input dimensions). LayerTestResult ResizeBilinearMagTest(armnn::IWorkloadFactory& workloadFactory); +// Tests that execute Resize Bilinear with NHWC data layout +LayerTestResult ResizeBilinearNopNhwcTest(armnn::IWorkloadFactory& workloadFactory); +LayerTestResult SimpleResizeBilinearNhwcTest(armnn::IWorkloadFactory& workloadFactory); +LayerTestResult ResizeBilinearSqMinNhwcTest(armnn::IWorkloadFactory& workloadFactory); +LayerTestResult ResizeBilinearMinNhwcTest(armnn::IWorkloadFactory& workloadFactory); +LayerTestResult ResizeBilinearMagNhwcTest(armnn::IWorkloadFactory& workloadFactory); + LayerTestResult BatchNormTest(armnn::IWorkloadFactory& workloadFactory); LayerTestResult FakeQuantizationTest(armnn::IWorkloadFactory& workloadFactory); -- cgit v1.2.1