Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <backendsCommon/Workload.hpp> |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 9 | #include <arm_compute/runtime/CL/functions/CLBatchToSpaceLayer.h> |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
| 14 | arm_compute::Status ClBatchToSpaceNdWorkloadValidate(const TensorInfo& input, |
| 15 | const TensorInfo& output, |
Keith Davis | bcd860a | 2021-08-05 14:20:33 +0100 | [diff] [blame] | 16 | const BatchToSpaceNdDescriptor& descriptor); |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 17 | |
| 18 | class ClBatchToSpaceNdWorkload : public BaseWorkload<BatchToSpaceNdQueueDescriptor> |
| 19 | { |
| 20 | public: |
Sadik Armagan | e944475 | 2020-12-02 11:28:58 +0000 | [diff] [blame] | 21 | ClBatchToSpaceNdWorkload(const BatchToSpaceNdQueueDescriptor& descriptor, |
| 22 | const WorkloadInfo& info, |
| 23 | const arm_compute::CLCompileContext& clCompileContext); |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 24 | |
| 25 | void Execute() const override; |
| 26 | |
| 27 | private: |
| 28 | |
| 29 | mutable arm_compute::CLBatchToSpaceLayer m_Layer; |
| 30 | }; |
| 31 | |
| 32 | } //namespace armnn |