15using namespace armnn::armcomputetensorutils;
24 arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
25 arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
30 arm_compute::DataLayout aclDataLayout;
42 return arm_compute::Status{arm_compute::ErrorCode::RUNTIME_ERROR,
"Unsupported axis"};
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)
65 m_Data.ValidateInputsOutputs(
"ClChannelShuffleWorkload", 1, 1);
73 arm_compute::DataLayout aclDataLayout;
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)
ChannelShuffleQueueDescriptor m_Data
ClBaseWorkload(const ChannelShuffleQueueDescriptor &descriptor, const WorkloadInfo &info)
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)
DestType PolymorphicDowncast(SourceType *value)
Polymorphic downcast for build in pointers only.
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.
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.