From ebe392df1635790bf21714549adb97f2f75559e1 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Thu, 30 Mar 2023 10:12:08 +0100 Subject: IVGCVSW-7562 Implement DelegateTestInterpreter for classic delegate * Updated all tests to use new DelegateTestInterpreter. * Fixed some unit tests where the shape was incorrect. * Add file identifier to FlatBuffersBuilder, as it is required for validation when creating the model using new API. Signed-off-by: Matthew Sloyan Change-Id: I1c4f5464367b35d4528571fa94d14bfaef18fb4d --- delegate/test/ResizeTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'delegate/test/ResizeTest.cpp') diff --git a/delegate/test/ResizeTest.cpp b/delegate/test/ResizeTest.cpp index 20113875a8..f3bfe43143 100644 --- a/delegate/test/ResizeTest.cpp +++ b/delegate/test/ResizeTest.cpp @@ -42,7 +42,7 @@ void ResizeBiliniarFloat32Test(std::vector& backends) const std::vector input1Shape { 1, 3, 3, 1 }; const std::vector input2Shape { 2 }; - const std::vector expectedOutputShape = input2NewShape; + const std::vector expectedOutputShape = { 1, 5, 5, 1 }; ResizeFP32TestImpl(tflite::BuiltinOperator_RESIZE_BILINEAR, backends, @@ -66,7 +66,7 @@ void ResizeNearestNeighbourFloat32Test(std::vector& backends) const std::vector input1Shape { 1, 2, 2, 1 }; const std::vector input2Shape { 2 }; - const std::vector expectedOutputShape = input2NewShape; + const std::vector expectedOutputShape = { 1, 1, 1, 1 }; ResizeFP32TestImpl(tflite::BuiltinOperator_RESIZE_NEAREST_NEIGHBOR, backends, -- cgit v1.2.1