telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
| 9 | #include <backendsCommon/WorkloadData.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 10 | |
| 11 | #include <armnn/TypesUtils.hpp> |
| 12 | #include <arm_compute/runtime/CL/functions/CLPermute.h> |
| 13 | |
| 14 | #include <string> |
| 15 | |
| 16 | namespace armnn |
| 17 | { |
| 18 | |
Matthew Bentham | 9820d30 | 2019-11-27 17:24:47 +0000 | [diff] [blame] | 19 | arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo& input, |
| 20 | const TensorInfo& output, |
| 21 | const PermuteDescriptor& descriptor); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 22 | |
Nattapat Chaimanowong | 157d94f | 2018-10-10 15:47:15 +0100 | [diff] [blame] | 23 | class ClPermuteWorkload : public BaseWorkload<PermuteQueueDescriptor> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 24 | { |
| 25 | public: |
| 26 | static const std::string& GetName() |
| 27 | { |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 28 | static const std::string name = std::string("ClPermuteWorkload"); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 29 | return name; |
| 30 | } |
| 31 | |
| 32 | ClPermuteWorkload(const PermuteQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 33 | void Execute() const override; |
| 34 | |
| 35 | private: |
Nattapat Chaimanowong | 157d94f | 2018-10-10 15:47:15 +0100 | [diff] [blame] | 36 | using BaseWorkload<PermuteQueueDescriptor>::m_Data; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 37 | mutable arm_compute::CLPermute m_PermuteFunction; |
| 38 | }; |
| 39 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 40 | } // namespace armnn |