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 --- 20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml (limited to '20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml') diff --git a/20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml b/20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml new file mode 100644 index 0000000000..cf984b9cd3 --- /dev/null +++ b/20.02/_log_softmax_end_to_end_test_impl_8cpp.xhtml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/LogSoftmaxEndToEndTestImpl.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
LogSoftmaxEndToEndTestImpl.cpp File Reference
+
+
+
#include "EndToEndTestImpl.hpp"
+#include "LogSoftmaxEndToEndTestImpl.hpp"
+#include <armnn/INetwork.hpp>
+#include <test/TestUtils.hpp>
+#include <boost/test/unit_test.hpp>
+
+

Go to the source code of this file.

+ + + + +

+Functions

void LogSoftmaxEndToEndTest (const std::vector< armnn::BackendId > &defaultBackends)
 
+

Function Documentation

+ +

◆ LogSoftmaxEndToEndTest()

+ +
+
+ + + + + + + + +
void LogSoftmaxEndToEndTest (const std::vector< armnn::BackendId > & defaultBackends)
+
+ +

Definition at line 76 of file LogSoftmaxEndToEndTestImpl.cpp.

+ +

References armnn::Float32.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
77 {
78  using namespace armnn;
79 
80  const float beta = 10.0f; // non-default beta
81  const int axis = 3; // positive axis
82 
83  const TensorShape inputShape{1, 1, 2, 4};
84  TensorInfo inputTensorInfo(inputShape, DataType::Float32);
85 
86  const TensorShape outputShape{1, 1, 2, 4};
87  TensorInfo outputTensorInfo(outputShape, DataType::Float32);
88 
89  std::vector<float> inputData = std::vector<float>({
90  0.0f, -0.6f, 0.2f, 0.4f,
91  0.3f, -0.2f, 1.0f, 0.1f
92  });
93 
94  std::vector<float> expectedOutputData = std::vector<float>({
95  -4.14297f, -10.14297f, -2.14297f, -0.14297f,
96  -7.00104f, -12.00104f, -0.00104087f, -9.00104f
97  });
98 
99  LogSoftmaxEndToEnd(defaultBackends,
100  inputTensorInfo,
101  outputTensorInfo,
102  inputData,
103  expectedOutputData,
104  beta,
105  axis);
106 }
+
Copyright (c) 2020 ARM Limited.
+ +
std::vector< armnn::BackendId > defaultBackends
+ +
+
+
+
+
+ + + + -- cgit v1.2.1