From 96becb7e4f5f510344c3850278a706d63a564fc4 Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Tue, 16 Jun 2020 12:41:49 +0100 Subject: Revert "IVGCVSW-3726 Upload ArmNN Doxygen files" This reverts commit de36e4a9c299028e792c3a5bd99ad0816d806077. Signed-off-by: Jan Eilers Change-Id: Idbf20c12ea07583ca552d7cc7fb517fbadc73fff --- .../_cl_resize_workload_8cpp_source.xhtml | 145 --------------------- 1 file changed, 145 deletions(-) delete mode 100644 Documentation/_cl_resize_workload_8cpp_source.xhtml (limited to 'Documentation/_cl_resize_workload_8cpp_source.xhtml') diff --git a/Documentation/_cl_resize_workload_8cpp_source.xhtml b/Documentation/_cl_resize_workload_8cpp_source.xhtml deleted file mode 100644 index 3f63e38fdc..0000000000 --- a/Documentation/_cl_resize_workload_8cpp_source.xhtml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - -ArmNN: src/backends/cl/workloads/ClResizeWorkload.cpp Source File - - - - - - - - - - - - - - - - -
-
- - - - ArmNN - - - -
-
-  20.02 -
-
-
- - - - - - - -
-
- -
-
-
- -
- -
-
- - -
- -
- -
-
-
ClResizeWorkload.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 "ClResizeWorkload.hpp"
7 
8 #include "ClWorkloadUtils.hpp"
9 
12 
14 
15 #include <cl/ClTensorHandle.hpp>
16 
17 using namespace armnn::armcomputetensorutils;
18 
19 namespace armnn
20 {
21 
23  const TensorInfo& output,
24  const ResizeDescriptor& descriptor)
25 {
26  arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
27  arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
28 
29  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(descriptor.m_DataLayout);
30  aclInputInfo.set_data_layout(aclDataLayout);
31  aclOutputInfo.set_data_layout(aclDataLayout);
32 
33  arm_compute::InterpolationPolicy aclInterpolationPolicy =
35 
36  return arm_compute::CLScale::validate(&aclInputInfo,
37  &aclOutputInfo,
38  aclInterpolationPolicy,
39  arm_compute::BorderMode::REPLICATE,
40  arm_compute::PixelValue(0.f),
41  arm_compute::SamplingPolicy::TOP_LEFT,
42  true,
43  descriptor.m_BilinearAlignCorners);
44 }
45 
47  BaseWorkload<ResizeQueueDescriptor>(descriptor, info)
48 {
49  m_Data.ValidateInputsOutputs("ClResizeWorkload", 1, 1);
50 
51  arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
52  arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
53 
54  arm_compute::DataLayout aclDataLayout = ConvertDataLayout(m_Data.m_Parameters.m_DataLayout);
55  input.info()->set_data_layout(aclDataLayout);
56  output.info()->set_data_layout(aclDataLayout);
57 
58  arm_compute::InterpolationPolicy aclInterpolationPolicy =
60 
61  m_ResizeLayer.configure(&input,
62  &output,
63  aclInterpolationPolicy,
64  arm_compute::BorderMode::REPLICATE,
65  arm_compute::PixelValue(0.f),
66  arm_compute::SamplingPolicy::TOP_LEFT,
67  true,
69 };
70 
72 {
73  ARMNN_SCOPED_PROFILING_EVENT_CL("ClResizeWorkload_Execute");
74  RunClFunction(m_ResizeLayer, CHECK_LOCATION());
75 }
76 
77 } //namespace armnn
ClResizeWorkload(const ResizeQueueDescriptor &descriptor, const WorkloadInfo &info)
-
arm_compute::InterpolationPolicy ConvertResizeMethodToAclInterpolationPolicy(ResizeMethod resizeMethod)
-
DataLayout
Definition: Types.hpp:49
- - - -
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
-
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
-
const ResizeQueueDescriptor m_Data
Definition: Workload.hpp:46
-
ResizeMethod m_Method
The Interpolation method to use (Bilinear, NearestNeighbor).
- -
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
-
Copyright (c) 2020 ARM Limited.
- -
A ResizeDescriptor for the ResizeLayer.
- - -
bool m_BilinearAlignCorners
Aligned corners for bilinear method.
-
void Execute() const override
-
Status
enumeration
Definition: Types.hpp:26
-
#define CHECK_LOCATION()
Definition: Exceptions.hpp:192
-
arm_compute::Status ClResizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor)
- - -
std::vector< ITensorHandle * > m_Outputs
- - -
Contains information about inputs and outputs to a layer.
-
std::vector< ITensorHandle * > m_Inputs
-
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
- - -
-
- - - - -- cgit v1.2.1