24.02
|
Go to the documentation of this file.
16 #include <arm_compute/core/Error.h>
25 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
26 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
33 return arm_compute::NESlice::validate(&aclInputInfo, &aclOutputInfo, starts, ends);
49 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
50 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
57 m_SliceFunction.configure(&input, &output, starts, ends);
63 m_SliceFunction.run();
std::vector< unsigned int > m_Begin
Beginning indices of the slice in each dimension.
virtual void Execute() const override
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
NeonSliceWorkload(const SliceQueueDescriptor &descriptor, const WorkloadInfo &info)
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.
A SliceDescriptor for the SliceLayer.
auto SetNeonSliceData(const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
SliceQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status NeonSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor)
std::vector< unsigned int > m_Size
Size of the slice in each dimension.
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
std::vector< ITensorHandle * > m_Inputs