aboutsummaryrefslogtreecommitdiff
path: root/delegate/test/ResizeTest.cpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2023-03-30 10:12:08 +0100
committerryan.oshea3 <ryan.oshea3@arm.com>2023-04-05 20:36:32 +0000
commitebe392df1635790bf21714549adb97f2f75559e1 (patch)
tree6fb8e56cc755d7c47a62bbe72c54b6ca5445377d /delegate/test/ResizeTest.cpp
parentac9607f401dc30003aa97bd179a06d6b8a32139f (diff)
downloadarmnn-ebe392df1635790bf21714549adb97f2f75559e1.tar.gz
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 <matthew.sloyan@arm.com> Change-Id: I1c4f5464367b35d4528571fa94d14bfaef18fb4d
Diffstat (limited to 'delegate/test/ResizeTest.cpp')
-rw-r--r--delegate/test/ResizeTest.cpp4
1 files changed, 2 insertions, 2 deletions
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<armnn::BackendId>& backends)
const std::vector<int32_t> input1Shape { 1, 3, 3, 1 };
const std::vector<int32_t> input2Shape { 2 };
- const std::vector<int32_t> expectedOutputShape = input2NewShape;
+ const std::vector<int32_t> expectedOutputShape = { 1, 5, 5, 1 };
ResizeFP32TestImpl(tflite::BuiltinOperator_RESIZE_BILINEAR,
backends,
@@ -66,7 +66,7 @@ void ResizeNearestNeighbourFloat32Test(std::vector<armnn::BackendId>& backends)
const std::vector<int32_t> input1Shape { 1, 2, 2, 1 };
const std::vector<int32_t> input2Shape { 2 };
- const std::vector<int32_t> expectedOutputShape = input2NewShape;
+ const std::vector<int32_t> expectedOutputShape = { 1, 1, 1, 1 };
ResizeFP32TestImpl(tflite::BuiltinOperator_RESIZE_NEAREST_NEIGHBOR,
backends,