blob: 491d3b89daed584af579c7b332222ac6860f13c6 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
Teresa Charlin588cbdf2022-01-19 15:55:37 +00008#include "NeonBaseWorkload.hpp"
Matthew Benthamd80a7122019-01-08 17:52:37 +00009
10#include <arm_compute/core/Error.h>
Mike Kelly07810fc2020-11-12 10:58:48 +000011#include <arm_compute/core/Types.h>
Matthew Benthamd80a7122019-01-08 17:52:37 +000012#include <arm_compute/runtime/IFunction.h>
telsoa014fcda012018-03-09 14:13:49 +000013
14namespace armnn
15{
telsoa01c577f2c2018-08-31 09:22:23 +010016
17arm_compute::Status NeonAdditionWorkloadValidate(const TensorInfo& input0,
18 const TensorInfo& input1,
Mike Kelly07810fc2020-11-12 10:58:48 +000019 const TensorInfo& output,
20 const ActivationDescriptor* activationDescriptor = nullptr);
telsoa01c577f2c2018-08-31 09:22:23 +010021
Teresa Charlin588cbdf2022-01-19 15:55:37 +000022class NeonAdditionWorkload : public NeonBaseWorkload<AdditionQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000023{
24public:
Matthew Bentham955258d2018-12-10 10:48:52 +000025 NeonAdditionWorkload(const AdditionQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000026 virtual void Execute() const override;
27
28private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000029 std::unique_ptr<arm_compute::IFunction> m_AddLayer;
telsoa014fcda012018-03-09 14:13:49 +000030};
31
32} //namespace armnn
33
34
35