From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- .../_cl_depth_to_space_workload_8cpp_source.xhtml | 142 +++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 21.02/_cl_depth_to_space_workload_8cpp_source.xhtml (limited to '21.02/_cl_depth_to_space_workload_8cpp_source.xhtml') diff --git a/21.02/_cl_depth_to_space_workload_8cpp_source.xhtml b/21.02/_cl_depth_to_space_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..63717245c5 --- /dev/null +++ b/21.02/_cl_depth_to_space_workload_8cpp_source.xhtml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/workloads/ClDepthToSpaceWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClDepthToSpaceWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include "ClWorkloadUtils.hpp"
9 
11 
14 
15 #include <cl/ClTensorHandle.hpp>
16 
17 namespace armnn
18 {
19 
20 using namespace armcomputetensorutils;
21 
23  const TensorInfo& output,
24  const DepthToSpaceDescriptor& desc)
25 {
26  DataLayout dataLayout = desc.m_DataLayout;
27  const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input, dataLayout);
28 
29  int32_t blockSize = armnn::numeric_cast<int32_t>(desc.m_BlockSize);
30 
31  const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output, dataLayout);
32 
33  const arm_compute::Status aclStatus = arm_compute::CLDepthToSpaceLayer::validate(&aclInputInfo,
34  &aclOutputInfo,
35  blockSize);
36  return aclStatus;
37 }
38 
40  const WorkloadInfo& info,
41  const arm_compute::CLCompileContext& clCompileContext)
43 {
44  m_Data.ValidateInputsOutputs("ClDepthToSpaceWorkload", 1, 1);
45 
46  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
47 
48  arm_compute::ICLTensor& input =
49  PolymorphicPointerDowncast<IClTensorHandle>(m_Data.m_Inputs[0])->GetTensor();
50  input.info()->set_data_layout(aclDataLayout);
51 
52  int32_t blockSize = armnn::numeric_cast<int32_t>(desc.m_Parameters.m_BlockSize);
53 
54  arm_compute::ICLTensor& output =
55  PolymorphicPointerDowncast<IClTensorHandle>(m_Data.m_Outputs[0])->GetTensor();
56  output.info()->set_data_layout(aclDataLayout);
57 
58  m_Layer.configure(clCompileContext, &input, &output, blockSize);
59 }
60 
62 {
63  ARMNN_SCOPED_PROFILING_EVENT_CL("ClDepthToSpaceWorkload_Execute");
64  RunClFunction(m_Layer, CHECK_LOCATION());
65 }
66 
67 } // namespace armnn
DataLayout
Definition: Types.hpp:50
+ +
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
const DepthToSpaceQueueDescriptor m_Data
Definition: Workload.hpp:46
+ +
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
+ +
ClDepthToSpaceWorkload(const DepthToSpaceQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+ + + +
Status
enumeration
Definition: Types.hpp:26
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
unsigned int m_BlockSize
Scalar specifying the input block size. It must be >= 1.
+
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
+ + +
std::vector< ITensorHandle * > m_Outputs
+ + +
std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)
Definition: NumericCast.hpp:35
+
Contains information about inputs and outputs to a layer.
+ +
std::vector< ITensorHandle * > m_Inputs
+
arm_compute::Status ClDepthToSpaceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &desc)
+ +
+
+ + + + -- cgit v1.2.1