From 7bfd38a721360183f3392f9ab35db18a0dd7fef8 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 Aug 2022 15:23:36 +0100 Subject: Update Doxygen for 22.08 Release Signed-off-by: Nikhil Raj Change-Id: I4789fe868e0492839be1482e5cee3642ed90d756 --- 22.08/_ref_activation_workload_8cpp_source.xhtml | 140 +++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 22.08/_ref_activation_workload_8cpp_source.xhtml (limited to '22.08/_ref_activation_workload_8cpp_source.xhtml') diff --git a/22.08/_ref_activation_workload_8cpp_source.xhtml b/22.08/_ref_activation_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..e9066022ef --- /dev/null +++ b/22.08/_ref_activation_workload_8cpp_source.xhtml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefActivationWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefActivationWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include "Activation.hpp"
9 #include "Decoders.hpp"
10 #include "Encoders.hpp"
11 #include "RefWorkloadUtils.hpp"
12 
13 #include "Profiling.hpp"
14 
15 namespace armnn
16 {
17 
19 {
21 }
22 
24 {
25  WorkingMemDescriptor* workingMemDescriptor = static_cast<WorkingMemDescriptor*>(executionData.m_Data);
26  Execute(workingMemDescriptor->m_Inputs, workingMemDescriptor->m_Outputs);
27 }
28 
29 void RefActivationWorkload::Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const
30 {
31  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefActivationWorkload_Execute");
32 
33  const TensorInfo& inputInfo = GetTensorInfo(inputs[0]);
34  const TensorInfo& outputInfo = GetTensorInfo(outputs[0]);
35 
36  Activation(*MakeDecoder<float>(inputInfo, inputs[0]->Map()),
37  *MakeEncoder<float>(outputInfo, outputs[0]->Map()),
38  inputInfo,
42 }
43 
44 
45 } //namespace armnn
+
CPU Execution: Reference C++ kernels.
+ + + +
Copyright (c) 2021 ARM Limited and Contributors.
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+ + + + + + + + +
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:61
+ +
std::vector< ITensorHandle * > m_Outputs
+ + +
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+ +
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:63
+
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:59
+
void ExecuteAsync(ExecutionData &executionData) override
+
+
+ + + + -- cgit v1.2.1