telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "backends/ClWorkloadUtils.hpp" |
| 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame^] | 13 | // Base class template providing an implementation of the Merger layer common to all data types. |
| 14 | template <armnn::DataType... DataTypes> |
| 15 | class ClBaseMergerWorkload : public TypedWorkload<MergerQueueDescriptor, DataTypes...> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 16 | { |
| 17 | public: |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame^] | 18 | using TypedWorkload<MergerQueueDescriptor, DataTypes...>::TypedWorkload; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 19 | |
| 20 | void Execute() const override |
| 21 | { |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame^] | 22 | // With subtensors, merger is a no-op. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 23 | } |
| 24 | }; |
| 25 | |
| 26 | } //namespace armnn |