From 03c7ff3f6188240baaeaeb405a357a0c58195fec Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 22 Aug 2023 12:00:04 +0100 Subject: IVGCVSW-7702 Update Doxygen Docu for 23.08 Signed-off-by: Nikhil Raj Change-Id: I357a9f7e47614589327c1ac5d95b6224ff77103d --- latest/_cl_tile_workload_8cpp_source.html | 185 ++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 latest/_cl_tile_workload_8cpp_source.html (limited to 'latest/_cl_tile_workload_8cpp_source.html') diff --git a/latest/_cl_tile_workload_8cpp_source.html b/latest/_cl_tile_workload_8cpp_source.html new file mode 100644 index 0000000000..c3eb4825f8 --- /dev/null +++ b/latest/_cl_tile_workload_8cpp_source.html @@ -0,0 +1,185 @@ + + + + + + + + +Arm NN: src/backends/cl/workloads/ClTileWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClTileWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "ClTileWorkload.hpp"
+
7 #include "ClWorkloadUtils.hpp"
+ +
9 #include <cl/ClTensorHandle.hpp>
+
10 #include <vector>
+
11 #include <algorithm>
+
12 
+
13 using namespace armnn::armcomputetensorutils;
+
14 namespace armnn
+
15 {
+ +
17  const TensorInfo& output,
+
18  const TileDescriptor& descriptor)
+
19 {
+
20  const arm_compute::TensorInfo aclInput = BuildArmComputeTensorInfo(input);
+
21  const arm_compute::TensorInfo aclOutput = BuildArmComputeTensorInfo(output);
+
22 
+
23  std::vector<uint32_t> aclMultiples = descriptor.m_Multiples;
+
24  std::reverse(aclMultiples.begin(),aclMultiples.end());
+
25 
+
26  return arm_compute::CLTile::validate(&aclInput, &aclOutput, aclMultiples);
+
27 }
+
28 
+ +
30  const armnn::WorkloadInfo& info,
+
31  const arm_compute::CLCompileContext& clCompileContext)
+
32  : BaseWorkload<TileQueueDescriptor>(descriptor, info)
+
33 {
+
34  m_Data.ValidateInputsOutputs("ClTileWorkload", 1, 1);
+
35 
+
36  std::vector<uint32_t> aclMultiples = descriptor.m_Parameters.m_Multiples;
+
37  std::reverse(aclMultiples.begin(),aclMultiples.end());
+
38 
+
39  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
40  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+
41  m_Layer.configure(clCompileContext, &input, &output, aclMultiples);
+
42 }
+
43 
+ +
45 {
+
46  ARMNN_SCOPED_PROFILING_EVENT_CL_GUID("ClTileWorkload_Execute", this->GetGuid());
+
47  m_Layer.run();
+
48 }
+
49 
+
50 } //namespace armnn
+
+
+
void Execute() const override
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+ +
ClTileWorkload(const TileQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+ +
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
+
Contains information about TensorInfos of a layer.
+ +
arm_compute::Status ClTileWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor)
+ + + +
std::vector< ITensorHandle * > m_Outputs
+ +
arm::pipe::ProfilingGuid GetGuid() const final
Definition: Workload.hpp:67
+ +
Status
Definition: Types.hpp:42
+
std::vector< uint32_t > m_Multiples
The vector to multiply the input shape by.
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+ + +
std::vector< ITensorHandle * > m_Inputs
+ + + + -- cgit v1.2.1