aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/1.0/FullyConnectedReshape.cpp20
-rw-r--r--test/Android.mk1
2 files changed, 21 insertions, 0 deletions
diff --git a/test/1.0/FullyConnectedReshape.cpp b/test/1.0/FullyConnectedReshape.cpp
new file mode 100644
index 00000000..250f8837
--- /dev/null
+++ b/test/1.0/FullyConnectedReshape.cpp
@@ -0,0 +1,20 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "../DriverTestHelpers.hpp"
+#include "../../1.0/FullyConnected.hpp"
+
+#include <boost/test/unit_test.hpp>
+
+BOOST_AUTO_TEST_SUITE(FullyConnectedReshapeTests)
+
+BOOST_AUTO_TEST_CASE(TestFlattenFullyConnectedInput)
+{
+ using armnn::TensorShape;
+ BOOST_TEST(FlattenFullyConnectedInput(TensorShape({97,1,1,2048}), TensorShape({512, 2048})) ==
+ TensorShape({97, 2048}));
+}
+
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/test/Android.mk b/test/Android.mk
index da3ac706..87f0b636 100644
--- a/test/Android.mk
+++ b/test/Android.mk
@@ -45,6 +45,7 @@ endif # PLATFORM_VERSION == 9
LOCAL_SRC_FILES := \
1.0/Convolution2D.cpp \
+ 1.0/FullyConnectedReshape.cpp \
Tests.cpp \
UtilsTests.cpp \
Concurrent.cpp \