24.08
|
Go to the documentation of this file.
25 using namespace armcomputetensorutils;
31 const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input, descriptor.
m_DataLayout);
32 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output, descriptor.
m_DataLayout);
45 return arm_compute::CLStridedSlice::validate(&aclInputInfo,
57 const arm_compute::CLCompileContext& clCompileContext)
79 auto numDimensions = armnn::numeric_cast<int>(
info.m_InputTensorInfos[0].GetNumDimensions());
85 input.info()->set_data_layout(aclDataLayout);
86 output.info()->set_data_layout(aclDataLayout);
90 m_StridedSliceLayer.configure(clCompileContext,
auto SetClStridedSliceData(const std::vector< int > &m_begin, const std::vector< int > &m_end, const std::vector< int > &m_stride)
std::vector< int > m_Begin
Begin values for the input that will be sliced.
arm_compute::Status ClStridedSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor)
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
unsigned int GetNumDimensions() const
int32_t m_BeginMask
Begin mask value.
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
LayerDescriptor m_Parameters
ClStridedSliceWorkload(const StridedSliceQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
Contains information about TensorInfos of a layer.
void Execute() const override
int32_t m_EndMask
End mask value.
std::vector< ITensorHandle * > m_Outputs
int32_t m_ShrinkAxisMask
Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
std::vector< int > m_Stride
Stride values for the input that will be sliced.
A StridedSliceDescriptor for the StridedSliceLayer.
StridedSliceQueueDescriptor m_Data
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
int32_t ConvertMaskToACLFormat(int32_t mask, int32_t numDim)
Copyright (c) 2021 ARM Limited and Contributors.
std::vector< int > m_End
End values for the input that will be sliced.
std::vector< ITensorHandle * > m_Inputs