John Mcloughlin | 34c1c38 | 2023-05-17 15:08:36 +0100 | [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/CLElementwiseOperations.h> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | class ClElementwiseBinaryWorkload : public ClBaseWorkload<ElementwiseBinaryQueueDescriptor> |
| 16 | { |
| 17 | public: |
| 18 | ClElementwiseBinaryWorkload(const ElementwiseBinaryQueueDescriptor& descriptor, |
| 19 | const WorkloadInfo& info, |
| 20 | const arm_compute::CLCompileContext& clCompileContext); |
| 21 | |
| 22 | void Execute() const override; |
| 23 | |
| 24 | private: |
| 25 | std::unique_ptr<arm_compute::IFunction> m_ElementwiseBinaryLayer; |
| 26 | |
| 27 | }; |
| 28 | |
| 29 | arm_compute::Status ClElementwiseBinaryValidate(const TensorInfo& input0, |
| 30 | const TensorInfo& input1, |
| 31 | const TensorInfo& output, |
| 32 | const ElementwiseBinaryDescriptor& descriptor, |
| 33 | const ActivationDescriptor* activationDescriptor = nullptr); |
| 34 | } //namespace armnn |