Tianle Cheng | 21a9f33 | 2023-11-09 13:56:53 +0000 | [diff] [blame^] | 1 | // |
| 2 | // Copyright © 2023 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "ClBaseWorkload.hpp" |
| 9 | |
| 10 | #include <arm_compute/runtime/CL/functions/CLReverse.h> |
| 11 | #include <arm_compute/runtime/Tensor.h> |
| 12 | #include "arm_compute/runtime/CL/CLTensor.h" |
| 13 | |
| 14 | namespace armnn |
| 15 | { |
| 16 | arm_compute::Status ClReverseV2WorkloadValidate(const TensorInfo& input, |
| 17 | const TensorInfo& axis, |
| 18 | const TensorInfo& output); |
| 19 | |
| 20 | class ClReverseV2Workload : public BaseWorkload<ReverseV2QueueDescriptor> |
| 21 | { |
| 22 | public: |
| 23 | ClReverseV2Workload(const ReverseV2QueueDescriptor &descriptor, |
| 24 | const WorkloadInfo &info, |
| 25 | const arm_compute::CLCompileContext& clCompileContext); |
| 26 | |
| 27 | void Execute() const override; |
| 28 | |
| 29 | private: |
| 30 | mutable arm_compute::CLReverse m_Layer; |
| 31 | }; |
| 32 | |
| 33 | } //namespace armnn |