From 8d2ca734165a068478df7cffa46185680b05cd20 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 24 Feb 2023 10:28:19 +0000 Subject: Update Doxygen docu for 23.02 Signed-off-by: Nikhil Raj Change-Id: Ie6c19a27d50fefab2796b2b5875374e81f5bf971 --- 23.02/_neon_sqrt_workload_8cpp_source.xhtml | 142 ++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 23.02/_neon_sqrt_workload_8cpp_source.xhtml (limited to '23.02/_neon_sqrt_workload_8cpp_source.xhtml') diff --git a/23.02/_neon_sqrt_workload_8cpp_source.xhtml b/23.02/_neon_sqrt_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..12187f0de5 --- /dev/null +++ b/23.02/_neon_sqrt_workload_8cpp_source.xhtml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonSqrtWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
NeonSqrtWorkload.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 
6 #include "NeonSqrtWorkload.hpp"
7 
8 #include "NeonWorkloadUtils.hpp"
9 
14 
15 namespace armnn
16 {
17 
19 {
20  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
21  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
22 
23  ActivationDescriptor descriptor;
25  const arm_compute::ActivationLayerInfo activationLayerInfo =
27 
28  return arm_compute::NEActivationLayer::validate(&aclInput, &aclOutput, activationLayerInfo);
29 }
30 
33 {
35 
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("NeonSqrtWorkload_Construct",
37  descriptor.m_Parameters,
38  info,
39  this->GetGuid());
40 
41  m_Data.ValidateInputsOutputs("NeonSqrtWorkload", 1, 1);
42 
43  ActivationDescriptor activationDescriptor;
44  activationDescriptor.m_Function = ActivationFunction::Sqrt;
45  const arm_compute::ActivationLayerInfo activationLayerInfo =
47 
48  arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
49  arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
50 
51  m_SqrtLayer.configure(&input, &output, activationLayerInfo);
52 }
53 
55 {
56  ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID("NeonSqrtWorkload_Execute", this->GetGuid());
57  m_SqrtLayer.run();
58 }
59 
60 } // namespace armnn
UnaryOperation m_Operation
Specifies the elementwiseUnary operation to execute.
+
NeonSqrtWorkload(const ElementwiseUnaryQueueDescriptor &descriptor, const WorkloadInfo &info)
+ + + +
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:61
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + + +
virtual void Execute() const override
+ + +
Status
enumeration
Definition: Types.hpp:42
+ +
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
+
std::vector< ITensorHandle * > m_Outputs
+
arm_compute::Status NeonSqrtWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+ +
Contains information about TensorInfos of a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID(name, guid)
+ +
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:59
+
arm_compute::ActivationLayerInfo ConvertActivationDescriptorToAclActivationLayerInfo(const ActivationDescriptor &actDesc)
+
+
+ + + + -- cgit v1.2.1