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/_cl_prelu_workload_8cpp_source.xhtml | 136 +++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 20.02/_cl_prelu_workload_8cpp_source.xhtml (limited to '20.02/_cl_prelu_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_prelu_workload_8cpp_source.xhtml b/20.02/_cl_prelu_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..9dee186503 --- /dev/null +++ b/20.02/_cl_prelu_workload_8cpp_source.xhtml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClPreluWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClPreluWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. 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  : BaseWorkload<PreluQueueDescriptor>(descriptor, info)
32 {
33  m_Data.ValidateInputsOutputs("ClPreluWorkload", 1, 1);
34 
35  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
36  arm_compute::ICLTensor& alpha = static_cast<IClTensorHandle*>(m_Data.m_Inputs[1])->GetTensor();
37  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
38 
39  m_PreluLayer.configure(&input, &alpha, &output);
40 }
41 
43 {
44  ARMNN_SCOPED_PROFILING_EVENT_CL("ClPreluWorkload_Execute");
45  RunClFunction(m_PreluLayer, CHECK_LOCATION());
46 }
47 
48 } //namespace armnn
void Execute() const override
+ + +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const PreluQueueDescriptor m_Data
Definition: Workload.hpp:46
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2020 ARM Limited.
+ + + +
Status
enumeration
Definition: Types.hpp:26
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
+ + +
arm_compute::Status ClPreluWorkloadValidate(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output)
+
std::vector< ITensorHandle * > m_Outputs
+ +
ClPreluWorkload(const PreluQueueDescriptor &descriptor, const WorkloadInfo &info)
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ + +
+
+ + + + -- cgit v1.2.1