From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...mnn_tf_parser_2test_2_softmax_8cpp_source.xhtml | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 20.02/armnn_tf_parser_2test_2_softmax_8cpp_source.xhtml (limited to '20.02/armnn_tf_parser_2test_2_softmax_8cpp_source.xhtml') diff --git a/20.02/armnn_tf_parser_2test_2_softmax_8cpp_source.xhtml b/20.02/armnn_tf_parser_2test_2_softmax_8cpp_source.xhtml new file mode 100644 index 0000000000..10e842f820 --- /dev/null +++ b/20.02/armnn_tf_parser_2test_2_softmax_8cpp_source.xhtml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfParser/test/Softmax.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Softmax.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <boost/test/unit_test.hpp>
9 
10 BOOST_AUTO_TEST_SUITE(TensorflowParser)
11 
12 struct SoftmaxFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser>
13 {
14  SoftmaxFixture()
15  {
16  m_Prototext = "node {\n"
17  " name: \"blah\"\n"
18  " op: \"Placeholder\"\n"
19  " attr {\n"
20  " key: \"dtype\"\n"
21  " value {\n"
22  " type: DT_FLOAT\n"
23  " }\n"
24  " }\n"
25  " attr {\n"
26  " key: \"shape\"\n"
27  " value {\n"
28  " shape {\n"
29  " }\n"
30  " }\n"
31  " }\n"
32  "}\n"
33  "node {\n"
34  " name: \"blah2\"\n"
35  " op: \"Softmax\"\n"
36  " input: \"blah\"\n"
37  " attr {\n"
38  " key: \"T\"\n"
39  " value {\n"
40  " type: DT_FLOAT\n"
41  " }\n"
42  " }\n"
43  "}\n";
44 
45  SetupSingleInputSingleOutput({ 1, 7 }, "blah", "blah2");
46  }
47 };
48 
49 BOOST_FIXTURE_TEST_CASE(ParseSoftmax, SoftmaxFixture)
50 {
51  RunTest<2>({ 0, 0, 10000, 0, 0, 0, 0 }, { 0, 0, 1, 0, 0, 0, 0 });
52 }
53 
54 
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
+ + +
BOOST_FIXTURE_TEST_CASE(ParseSoftmaxLite, SoftmaxFixture)
Definition: Softmax.cpp:72
+ +
BOOST_AUTO_TEST_SUITE_END()
+
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
Parses and loads the network defined by the m_Prototext string.
+ +
+
+ + + + -- cgit v1.2.1