blob: 43de302546319cd118e59c1bfafbf047dee0869e [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
David Beckac42efd2018-09-26 17:41:13 +01008#include <backends/Workload.hpp>
9#include <backends/WorkloadData.hpp>
telsoa014fcda012018-03-09 14:13:49 +000010
11#include <armnn/TypesUtils.hpp>
12#include <arm_compute/runtime/CL/functions/CLPermute.h>
13
14#include <string>
15
16namespace armnn
17{
18
19arm_compute::Status ClPermuteWorkloadValidate(const PermuteDescriptor& descriptor);
20
Nattapat Chaimanowong157d94f2018-10-10 15:47:15 +010021class ClPermuteWorkload : public BaseWorkload<PermuteQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000022{
23public:
24 static const std::string& GetName()
25 {
telsoa01c577f2c2018-08-31 09:22:23 +010026 static const std::string name = std::string("ClPermuteWorkload");
telsoa014fcda012018-03-09 14:13:49 +000027 return name;
28 }
29
30 ClPermuteWorkload(const PermuteQueueDescriptor& descriptor, const WorkloadInfo& info);
31 void Execute() const override;
32
33private:
Nattapat Chaimanowong157d94f2018-10-10 15:47:15 +010034 using BaseWorkload<PermuteQueueDescriptor>::m_Data;
telsoa014fcda012018-03-09 14:13:49 +000035 mutable arm_compute::CLPermute m_PermuteFunction;
36};
37
telsoa01c577f2c2018-08-31 09:22:23 +010038} // namespace armnn