15 using namespace armnn::armcomputetensorutils;
24 arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
25 arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
44 aclInputInfo.set_data_layout(aclDataLayout);
45 aclOutputInfo.set_data_layout(aclDataLayout);
46 return arm_compute::CLChannelShuffleLayer::validate(&aclInputInfo, &aclOutputInfo, descriptor.
m_NumGroups);
50 return arm_compute::Status{arm_compute::ErrorCode::RUNTIME_ERROR,
"Unsupported number of dimensions"};
56 const arm_compute::CLCompileContext& clCompileContext)
67 arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
68 arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
86 input.info()->set_data_layout(aclDataLayout);
87 output.info()->set_data_layout(aclDataLayout);
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
ClChannelShuffleWorkload(const ChannelShuffleQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
virtual void Execute() const override
unsigned int GetNumDimensions() const
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status ClChannelShuffleValidate(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor)
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
A ChannelShuffleDescriptor for the ChannelShuffle operator.
uint32_t m_NumGroups
Number of groups for the channel shuffle operation.
uint32_t m_Axis
Axis to apply channel shuffle operation on.
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.