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> |
| 10 | #include <neon/workloads/NeonWorkloadUtils.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 11 | |
| 12 | #include <armnn/TypesUtils.hpp> |
| 13 | #include <arm_compute/runtime/NEON/functions/NEPermute.h> |
| 14 | |
| 15 | #include <string> |
| 16 | |
| 17 | namespace armnn |
| 18 | { |
| 19 | arm_compute::Status NeonPermuteWorkloadValidate(const TensorInfo& input, const TensorInfo& output, |
| 20 | const PermuteDescriptor& descriptor); |
| 21 | |
Nattapat Chaimanowong | 1d32006 | 2018-10-12 14:14:44 +0100 | [diff] [blame] | 22 | class NeonPermuteWorkload : public BaseWorkload<PermuteQueueDescriptor> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 23 | { |
| 24 | public: |
| 25 | static const std::string& GetName() |
| 26 | { |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 27 | static const std::string name = std::string("NeonPermuteWorkload"); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 28 | return name; |
| 29 | } |
| 30 | |
| 31 | NeonPermuteWorkload(const PermuteQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 32 | void Execute() const override; |
| 33 | |
| 34 | private: |
Nattapat Chaimanowong | 1d32006 | 2018-10-12 14:14:44 +0100 | [diff] [blame] | 35 | using BaseWorkload<PermuteQueueDescriptor>::m_Data; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 36 | mutable arm_compute::NEPermute m_PermuteFunction; |
| 37 | }; |
| 38 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 39 | } // namespace armnn |