David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
| 9 | |
| 10 | #include <arm_compute/core/Error.h> |
Mike Kelly | 07810fc | 2020-11-12 10:58:48 +0000 | [diff] [blame] | 11 | #include <arm_compute/core/Types.h> |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 12 | #include <arm_compute/runtime/IFunction.h> |
| 13 | |
| 14 | #include <memory> |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 15 | |
| 16 | namespace armnn |
| 17 | { |
| 18 | |
| 19 | arm_compute::Status NeonSubtractionWorkloadValidate(const TensorInfo& input0, |
| 20 | const TensorInfo& input1, |
Mike Kelly | 07810fc | 2020-11-12 10:58:48 +0000 | [diff] [blame] | 21 | const TensorInfo& output, |
| 22 | const ActivationDescriptor* activationDescriptor = nullptr); |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 23 | |
Conor Kennedy | b99480b | 2019-03-08 08:24:41 +0000 | [diff] [blame] | 24 | class NeonSubtractionWorkload : public BaseWorkload<SubtractionQueueDescriptor> |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 25 | { |
| 26 | public: |
Conor Kennedy | b99480b | 2019-03-08 08:24:41 +0000 | [diff] [blame] | 27 | NeonSubtractionWorkload(const SubtractionQueueDescriptor& descriptor, const WorkloadInfo& info); |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 28 | virtual void Execute() const override; |
| 29 | |
| 30 | private: |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 31 | std::unique_ptr<arm_compute::IFunction> m_SubLayer; |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | } //namespace armnn |