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_reshape_workload_8cpp_source.xhtml | 134 +++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 20.02/_cl_reshape_workload_8cpp_source.xhtml (limited to '20.02/_cl_reshape_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_reshape_workload_8cpp_source.xhtml b/20.02/_cl_reshape_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..0c3fb6625a --- /dev/null +++ b/20.02/_cl_reshape_workload_8cpp_source.xhtml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClReshapeWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClReshapeWorkload.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 "ClReshapeWorkload.hpp"
7 #include <cl/ClTensorHandle.hpp>
9 
10 #include "ClWorkloadUtils.hpp"
11 
12 namespace armnn
13 {
14 
16  const TensorInfo& output)
17 {
18  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
19  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
20 
21  return arm_compute::CLReshapeLayer::validate(&aclInputInfo, &aclOutputInfo);
22 }
23 
25  : BaseWorkload<ReshapeQueueDescriptor>(descriptor, info)
26 {
27  m_Data.ValidateInputsOutputs("ClReshapeWorkload", 1, 1);
28 
29  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
30  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
31 
32  m_Layer.configure(&input, &output);
33 }
34 
36 {
37  ARMNN_SCOPED_PROFILING_EVENT_CL("ClReshapeWorkload_Execute");
38  RunClFunction(m_Layer, CHECK_LOCATION());
39 }
40 
41 } //namespace armnn
void Execute() const override
+ + +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const ReshapeQueueDescriptor m_Data
Definition: Workload.hpp:46
+
arm_compute::Status ClReshapeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2020 ARM Limited.
+
ClReshapeWorkload(const ReshapeQueueDescriptor &descriptor, const WorkloadInfo &info)
+ +
Status
enumeration
Definition: Types.hpp:26
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
+ + +
std::vector< ITensorHandle * > m_Outputs
+ +
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ + +
+
+ + + + -- cgit v1.2.1