24.08
|
Go to the documentation of this file.
22 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
23 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
30 return arm_compute::CLSlice::validate(&aclInput, &aclOutput, starts, ends);
35 const arm_compute::CLCompileContext& clCompileContext)
46 arm_compute::ICLTensor& input = PolymorphicDowncast<IClTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
47 arm_compute::ICLTensor& output = PolymorphicDowncast<IClTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
56 m_SliceFunction.configure(clCompileContext, &input, &output, starts, ends);
std::vector< unsigned int > m_Begin
Beginning indices of the slice in each dimension.
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
LayerDescriptor m_Parameters
#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.
A SliceDescriptor for the SliceLayer.
arm_compute::Status ClSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor)
std::vector< ITensorHandle * > m_Outputs
auto SetClSliceData(const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
SliceQueueDescriptor m_Data
virtual void Execute() const override
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
ClSliceWorkload(const SliceQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Copyright (c) 2021 ARM Limited and Contributors.
std::vector< unsigned int > m_Size
Size of the slice in each dimension.
std::vector< ITensorHandle * > m_Inputs