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_permute_workload_8cpp_source.xhtml | 139 +++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 20.02/_cl_permute_workload_8cpp_source.xhtml (limited to '20.02/_cl_permute_workload_8cpp_source.xhtml') diff --git a/20.02/_cl_permute_workload_8cpp_source.xhtml b/20.02/_cl_permute_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..5f3cc4adb9 --- /dev/null +++ b/20.02/_cl_permute_workload_8cpp_source.xhtml @@ -0,0 +1,139 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClPermuteWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClPermuteWorkload.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 "ClPermuteWorkload.hpp"
7 #include <cl/ClTensorHandle.hpp>
9 
10 #include <arm_compute/core/Error.h>
11 
12 #include "ClWorkloadUtils.hpp"
13 
14 namespace armnn
15 {
16 
18  const TensorInfo& output,
19  const PermuteDescriptor& descriptor)
20 {
21  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
23  const armnn::PermutationVector& mappings = descriptor.m_DimMappings;
24 
25  return arm_compute::CLPermute::validate(&aclInputInfo, &aclOutputInfo,
26  armcomputetensorutils::BuildArmComputePermutationVector(mappings));
27 }
28 
30  const WorkloadInfo& info)
31  : BaseWorkload<PermuteQueueDescriptor>(descriptor, info)
32 {
33  using armcomputetensorutils::BuildArmComputePermutationVector;
34 
36 
37  const arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
38  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
40 
41  // Run the layer.
42  m_PermuteFunction.configure(&input, &output, BuildArmComputePermutationVector(mappings));
43 }
44 
46 {
48  RunClFunction(m_PermuteFunction, CHECK_LOCATION());
49 }
50 
51 } // namespace armnn
+ +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const PermuteQueueDescriptor m_Data
Definition: Workload.hpp:46
+
arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor)
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2020 ARM Limited.
+
void Execute() const override
+ +
PermutationVector m_DimMappings
Indicates how to translate tensor elements from a given source into the target destination, when source and target potentially have different memory layouts e.g.
+ +
Status
enumeration
Definition: Types.hpp:26
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
+ +
static const std::string & GetName()
+ +
std::vector< ITensorHandle * > m_Outputs
+ +
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+ + +
ClPermuteWorkload(const PermuteQueueDescriptor &descriptor, const WorkloadInfo &info)
+
A PermuteDescriptor for the PermuteLayer.
+
+
+ + + + -- cgit v1.2.1