2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
8 #include <backends/Workload.hpp>
9 #include <backends/WorkloadData.hpp>
11 #include <armnn/TypesUtils.hpp>
12 #include <arm_compute/runtime/CL/functions/CLPermute.h>
19 arm_compute::Status ClPermuteWorkloadValidate(const PermuteDescriptor& descriptor);
21 template<armnn::DataType... DataTypes>
22 class ClPermuteWorkload : public TypedWorkload<PermuteQueueDescriptor, DataTypes...>
25 static const std::string& GetName()
27 static const std::string name = std::string("ClPermuteWorkload");
31 ClPermuteWorkload(const PermuteQueueDescriptor& descriptor, const WorkloadInfo& info);
32 void Execute() const override;
35 using TypedWorkload<PermuteQueueDescriptor, DataTypes...>::m_Data;
36 mutable arm_compute::CLPermute m_PermuteFunction;
39 using ClPermuteFloatWorkload = ClPermuteWorkload<DataType::Float16, DataType::Float32>;
40 using ClPermuteUint8Workload = ClPermuteWorkload<DataType::QuantisedAsymm8>;