21 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
37 return arm_compute::NEStridedSlice::validate(&aclInput,
53 arm_compute::ITensor& input = boost::polymorphic_downcast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
54 arm_compute::ITensor& output = boost::polymorphic_downcast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
70 input.info()->set_data_layout(aclDataLayout);
71 output.info()->set_data_layout(aclDataLayout);
73 auto layer = std::make_unique<arm_compute::NEStridedSlice>();
75 layer->configure(&input,
83 m_Layer.reset(layer.release());
int32_t m_ShrinkAxisMask
Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1...
std::vector< int > m_Begin
Begin values for the input that will be sliced.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
const StridedSliceQueueDescriptor m_Data
#define ARMNN_SCOPED_PROFILING_EVENT_NEON(name)
arm_compute::Status NeonStridedSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor)
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
Copyright (c) 2020 ARM Limited.
auto SetNeonStridedSliceData(const std::vector< int > &m_begin, const std::vector< int > &m_end, const std::vector< int > &m_stride)
int32_t m_BeginMask
Begin mask value.
int32_t m_EndMask
End mask value.
LayerDescriptor m_Parameters
virtual void Execute() const override
std::vector< TensorInfo > m_InputTensorInfos
std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)
std::vector< int > m_Stride
Stride values for the input that will be sliced.
std::vector< int > m_End
End values for the input that will be sliced.
int32_t ConvertMaskToACLFormat(int32_t mask, int32_t numDim)
std::vector< ITensorHandle * > m_Outputs
A StridedSliceDescriptor for the StridedSliceLayer.
Contains information about inputs and outputs to a layer.
NeonStridedSliceWorkload(const StridedSliceQueueDescriptor &descriptor, const WorkloadInfo &info)
std::vector< ITensorHandle * > m_Inputs
unsigned int GetNumDimensions() const