From d5d43d82c0137e08553e44345c609cdd1a7931c7 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 17 Jun 2022 13:24:58 +0100 Subject: Update Doxygen for 22.05 patch release * Pooling3D added to tfLite delegate * Available in tag 22.05.01 Signed-off-by: Nikhil Raj Change-Id: I8d605bba4e87d30baa2c6d7b338c78a4400dc021 --- .../_cl_log_softmax_workload_8cpp_source.xhtml | 145 +++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 22.05.01/_cl_log_softmax_workload_8cpp_source.xhtml (limited to '22.05.01/_cl_log_softmax_workload_8cpp_source.xhtml') diff --git a/22.05.01/_cl_log_softmax_workload_8cpp_source.xhtml b/22.05.01/_cl_log_softmax_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..3095e91bca --- /dev/null +++ b/22.05.01/_cl_log_softmax_workload_8cpp_source.xhtml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClLogSoftmaxWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05.01 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClLogSoftmaxWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 #include "ClWorkloadUtils.hpp"
8 
11 
12 #include <cl/ClTensorHandle.hpp>
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const LogSoftmaxDescriptor& descriptor)
20 {
21  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
23 
24  int aclAxis = ComputeAclAxis(descriptor.m_Axis, input);
25  return arm_compute::CLLogSoftmaxLayer::validate(&aclInputInfo, &aclOutputInfo, descriptor.m_Beta, aclAxis);
26 }
27 
29  const WorkloadInfo& info,
30  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
31  const arm_compute::CLCompileContext& clCompileContext)
32  : ClBaseWorkload<LogSoftmaxQueueDescriptor>(descriptor, info)
33  , m_LogSoftmaxLayer(memoryManager)
34 {
35  // Report Profiling Details
36  ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClLogSoftmaxWorkload_Construct",
37  descriptor.m_Parameters,
38  info,
39  this->GetGuid());
40 
41  m_Data.ValidateInputsOutputs("ClLogSoftmaxWorkload", 1, 1);
42 
43  arm_compute::ICLTensor& input = static_cast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
44  arm_compute::ICLTensor& output = static_cast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
45 
47 
48  {
49  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClLogSoftmaxWorkload_configure");
50  m_LogSoftmaxLayer.configure(clCompileContext, &input, &output, m_Data.m_Parameters.m_Beta, aclAxis);
51  }
52 }
53 
55 {
56  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClLogSoftmaxWorkload_Execute", this->GetGuid());
57  RunClFunction(m_LogSoftmaxLayer, CHECK_LOCATION());
58 }
59 
60 } // namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
int ComputeAclAxis(const int &armnnAxis, const armnn::TensorInfo &tensor)
Function to convert ArmNN axis (left to right) to ACL axis (right to left) ranging from [-rank...
+
int m_Axis
Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...
+
arm_compute::Status ClLogSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor)
+ + + +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
float m_Beta
Exponentiation value.
+
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:59
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:220
+
std::vector< TensorInfo > m_InputTensorInfos
+ + + +
Status
enumeration
Definition: Types.hpp:42
+ +
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+ +
std::vector< ITensorHandle * > m_Outputs
+
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
Definition: Profiling.hpp:227
+
Contains information about TensorInfos of a layer.
+
ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
+
std::vector< ITensorHandle * > m_Inputs
+ + +
A SoftmaxDescriptor for the SoftmaxLayer.
+ +
+
+ + + + -- cgit v1.2.1