Nattapat Chaimanowong | f3eb46d | 2018-10-12 13:54:09 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 9 | |
| 10 | #include <arm_compute/core/Error.h> |
| 11 | #include <arm_compute/runtime/IFunction.h> |
Derek Lamberti | 0790dce | 2019-04-15 18:37:35 +0100 | [diff] [blame] | 12 | #include <arm_compute/runtime/NEON/functions/NEConcatenateLayer.h> |
| 13 | |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 14 | #include <memory> |
Nattapat Chaimanowong | f3eb46d | 2018-10-12 13:54:09 +0100 | [diff] [blame] | 15 | |
| 16 | namespace armnn |
| 17 | { |
Jim Flynn | 39d487d | 2019-05-17 15:44:36 +0100 | [diff] [blame] | 18 | arm_compute::Status NeonConcatWorkloadValidate(const std::vector<const TensorInfo*>& inputs, |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 19 | const TensorInfo& output, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 20 | const OriginsDescriptor& descriptor); |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 21 | |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 22 | class NeonConcatWorkload : public BaseWorkload<ConcatQueueDescriptor> |
Nattapat Chaimanowong | f3eb46d | 2018-10-12 13:54:09 +0100 | [diff] [blame] | 23 | { |
| 24 | public: |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 25 | NeonConcatWorkload(const ConcatQueueDescriptor& descriptor, const WorkloadInfo& info); |
Nattapat Chaimanowong | f3eb46d | 2018-10-12 13:54:09 +0100 | [diff] [blame] | 26 | |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 27 | using BaseWorkload<ConcatQueueDescriptor>::BaseWorkload; |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 28 | void Execute() const override; |
| 29 | |
| 30 | private: |
Derek Lamberti | 0790dce | 2019-04-15 18:37:35 +0100 | [diff] [blame] | 31 | std::unique_ptr<arm_compute::NEConcatenateLayer> m_Layer; |
Nattapat Chaimanowong | f3eb46d | 2018-10-12 13:54:09 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | } //namespace armnn |