From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/_cl_prelu_workload_8cpp_source.xhtml | 139 +++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 22.02/_cl_prelu_workload_8cpp_source.xhtml (limited to '22.02/_cl_prelu_workload_8cpp_source.xhtml') diff --git a/22.02/_cl_prelu_workload_8cpp_source.xhtml b/22.02/_cl_prelu_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..82c8d7ac44 --- /dev/null +++ b/22.02/_cl_prelu_workload_8cpp_source.xhtml @@ -0,0 +1,139 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClPreluWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClPreluWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "ClPreluWorkload.hpp"
7 #include "ClWorkloadUtils.hpp"
10 #include <cl/ClLayerSupport.hpp>
11 #include <cl/ClTensorHandle.hpp>
12 
13 namespace armnn
14 {
15 
17  const TensorInfo& alpha,
18  const TensorInfo& output)
19 {
20  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
21  const arm_compute::TensorInfo aclAlpha = armcomputetensorutils::BuildArmComputeTensorInfo(alpha);
22  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
23 
24  return arm_compute::CLPReluLayer::validate(&aclInput,
25  &aclAlpha,
26  &aclOutput);
27 }
28 
30  const WorkloadInfo& info,
31  const arm_compute::CLCompileContext& clCompileContext)
32  : ClBaseWorkload<PreluQueueDescriptor>(descriptor, info)
33 {
34  m_Data.ValidateInputsOutputs("ClPreluWorkload", 1, 1);
35 
36  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
37  arm_compute::ICLTensor& alpha = static_cast<IClTensorHandle*>(m_Data.m_Inputs[1])->GetTensor();
38  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
39 
40  {
41  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "ClPreluWorkload_configure");
42  m_PreluLayer.configure(clCompileContext, &input, &alpha, &output);
43  }
44 }
45 
47 {
48  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClPreluWorkload_Execute", this->GetGuid());
49  RunClFunction(m_PreluLayer, CHECK_LOCATION());
50 }
51 
52 } //namespace armnn
void Execute() const override
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+ + +
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
ClPreluWorkload(const PreluQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
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
+ + +
Status
enumeration
Definition: Types.hpp:29
+ + +
#define CHECK_LOCATION()
Definition: Exceptions.hpp:209
+
profiling::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:55
+ +
arm_compute::Status ClPreluWorkloadValidate(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output)
+
std::vector< ITensorHandle * > m_Outputs
+ +
Contains information about TensorInfos of a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ + +
+
+ + + + -- cgit v1.2.1