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 --- 21.02/_neon_slice_workload_8cpp_source.xhtml | 138 +++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 21.02/_neon_slice_workload_8cpp_source.xhtml (limited to '21.02/_neon_slice_workload_8cpp_source.xhtml') diff --git a/21.02/_neon_slice_workload_8cpp_source.xhtml b/21.02/_neon_slice_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..632a9d6850 --- /dev/null +++ b/21.02/_neon_slice_workload_8cpp_source.xhtml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonSliceWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
NeonSliceWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "NeonSliceWorkload.hpp"
7 
8 #include "NeonWorkloadUtils.hpp"
9 
11 
13 
15 
16 #include <arm_compute/core/Error.h>
17 
18 namespace armnn
19 {
20 
22  const TensorInfo& output,
23  const SliceDescriptor& descriptor)
24 {
25  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
26  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
27 
30 
31  std::tie(starts, ends) = SetNeonSliceData(descriptor.m_Begin, descriptor.m_Size);
32 
33  return arm_compute::NESlice::validate(&aclInputInfo, &aclOutputInfo, starts, ends);
34 }
35 
37  const WorkloadInfo& info)
38  : BaseWorkload<SliceQueueDescriptor>(descriptor, info)
39 {
40  m_Data.ValidateInputsOutputs("NeonSliceWorkload", 1, 1);
41 
42  arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
43  arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
44 
47 
49 
50  m_SliceFunction.configure(&input, &output, starts, ends);
51 }
52 
54 {
55  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonSliceWorkload_Execute");
56  m_SliceFunction.run();
57 }
58 
59 } // namespace armnn
+
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
+
const SliceQueueDescriptor m_Data
Definition: Workload.hpp:46
+
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
+
std::vector< unsigned int > m_Size
Size of the slice in each dimension.
+ + +
arm_compute::Status NeonSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor)
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + + +
std::vector< unsigned int > m_Begin
Beginning indices of the slice in each dimension.
+
auto SetNeonSliceData(const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
+
Status
enumeration
Definition: Types.hpp:26
+ +
virtual void Execute() const override
+ +
A SliceDescriptor for the SliceLayer.
+
NeonSliceWorkload(const SliceQueueDescriptor &descriptor, const WorkloadInfo &info)
+ +
std::vector< ITensorHandle * > m_Outputs
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
+
+ + + + -- cgit v1.2.1