David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
Matthew Bentham | 14e4669 | 2018-09-20 15:35:30 +0100 | [diff] [blame] | 9 | |
Matthew Bentham | 9b3e738 | 2020-02-05 21:39:55 +0000 | [diff] [blame] | 10 | #include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h> |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
Matthew Bentham | 092b304 | 2018-10-01 16:39:28 +0100 | [diff] [blame] | 15 | class ClSubtractionWorkload : public BaseWorkload<SubtractionQueueDescriptor> |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 16 | { |
| 17 | public: |
David Beck | 0a710c4 | 2018-09-11 15:21:14 +0100 | [diff] [blame] | 18 | ClSubtractionWorkload(const SubtractionQueueDescriptor& descriptor, const WorkloadInfo& info); |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 19 | |
| 20 | void Execute() const override; |
| 21 | |
| 22 | private: |
| 23 | mutable arm_compute::CLArithmeticSubtraction m_Layer; |
| 24 | }; |
| 25 | |
arovir01 | 085f0a4 | 2018-10-08 14:48:19 +0100 | [diff] [blame] | 26 | arm_compute::Status ClSubtractionValidate(const TensorInfo& input0, |
| 27 | const TensorInfo& input1, |
Mike Kelly | 07810fc | 2020-11-12 10:58:48 +0000 | [diff] [blame] | 28 | const TensorInfo& output, |
| 29 | const ActivationDescriptor* activationDescriptor = nullptr); |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 30 | } //namespace armnn |