Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 1 | // |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 8 | #include "ClBaseWorkload.hpp" |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 9 | |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 10 | #include <arm_compute/core/Error.h> |
| 11 | #include <arm_compute/runtime/IFunction.h> |
Sadik Armagan | e944475 | 2020-12-02 11:28:58 +0000 | [diff] [blame] | 12 | #include <arm_compute/runtime/CL/functions/CLConcatenateLayer.h> |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 13 | |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 14 | namespace armnn |
| 15 | { |
| 16 | |
Jim Flynn | 6905941 | 2019-05-17 13:03:57 +0100 | [diff] [blame] | 17 | arm_compute::Status ClConcatWorkloadValidate(const std::vector<const TensorInfo*>& inputs, |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 18 | const TensorInfo& output, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 19 | const OriginsDescriptor& descriptor); |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 20 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 21 | class ClConcatWorkload : public ClBaseWorkload<ConcatQueueDescriptor> |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 22 | { |
| 23 | public: |
Sadik Armagan | e944475 | 2020-12-02 11:28:58 +0000 | [diff] [blame] | 24 | ClConcatWorkload(const ConcatQueueDescriptor& descriptor, |
| 25 | const WorkloadInfo& info, |
| 26 | const arm_compute::CLCompileContext& clCompileContext); |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 27 | |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 28 | void Execute() const override; |
| 29 | |
| 30 | private: |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 31 | mutable std::unique_ptr<arm_compute::IFunction> m_Layer; |
Nattapat Chaimanowong | 02f8bc1 | 2018-10-11 16:16:17 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | } //namespace armnn |