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/_neon_slice_workload_8cpp_source.xhtml | 137 +++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 20.02/_neon_slice_workload_8cpp_source.xhtml (limited to '20.02/_neon_slice_workload_8cpp_source.xhtml') diff --git a/20.02/_neon_slice_workload_8cpp_source.xhtml b/20.02/_neon_slice_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..3b2efec3f6 --- /dev/null +++ b/20.02/_neon_slice_workload_8cpp_source.xhtml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + +ArmNN: src/backends/neon/workloads/NeonSliceWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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 
14 #include <arm_compute/core/Error.h>
15 
16 namespace armnn
17 {
18 
20  const TensorInfo& output,
21  const SliceDescriptor& descriptor)
22 {
23  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
24  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
25 
28 
29  std::tie(starts, ends) = SetNeonSliceData(descriptor.m_Begin, descriptor.m_Size);
30 
31  return arm_compute::NESlice::validate(&aclInputInfo, &aclOutputInfo, starts, ends);
32 }
33 
35  const WorkloadInfo& info)
36  : BaseWorkload<SliceQueueDescriptor>(descriptor, info)
37 {
38  m_Data.ValidateInputsOutputs("NeonSliceWorkload", 1, 1);
39 
40  arm_compute::ITensor& input = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
41  arm_compute::ITensor& output = boost::polymorphic_downcast<IAclTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
42 
45 
47 
48  m_SliceFunction.configure(&input, &output, starts, ends);
49 }
50 
52 {
53  ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonSliceWorkload_Execute");
54  m_SliceFunction.run();
55 }
56 
57 } // 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) 2020 ARM Limited.
+ + +
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