aboutsummaryrefslogtreecommitdiff
path: root/test/1.0
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2019-04-23 16:43:27 +0100
committerderek.lamberti <derek.lamberti@arm.com>2019-04-25 12:12:48 +0000
commitf61c2705ad97273a9409a2aff427470ac131f596 (patch)
tree8835dae435f174a54afe5bd41e2763d5eb1236bc /test/1.0
parent5404c01b4b0a2455aea0f5d1de0a45e2e859a466 (diff)
downloadandroid-nn-driver-f61c2705ad97273a9409a2aff427470ac131f596.tar.gz
MLCE-117 Add a unit test for implicit flatten of FC layer input
Change-Id: Ia4dd63927a54aa0cc24d5a378f30189c957f12e8 Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Diffstat (limited to 'test/1.0')
-rw-r--r--test/1.0/FullyConnectedReshape.cpp20
1 files changed, 20 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()