blob: d2bcd04482413d711d9379528d2c1f1841ab6c72 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. 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
Matthew Benthamd80a7122019-01-08 17:52:37 +00008#include <backendsCommon/Workload.hpp>
9
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>
13
14#include <memory>
telsoa014fcda012018-03-09 14:13:49 +000015
16namespace armnn
17{
telsoa01c577f2c2018-08-31 09:22:23 +010018arm_compute::Status NeonMultiplicationWorkloadValidate(const TensorInfo& input0,
19 const TensorInfo& input1,
Mike Kelly07810fc2020-11-12 10:58:48 +000020 const TensorInfo& output,
21 const ActivationDescriptor* activationDescriptor = nullptr);
telsoa014fcda012018-03-09 14:13:49 +000022
Conor Kennedyb99480b2019-03-08 08:24:41 +000023class NeonMultiplicationWorkload : public BaseWorkload<MultiplicationQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000024{
25public:
Conor Kennedyb99480b2019-03-08 08:24:41 +000026 NeonMultiplicationWorkload(const MultiplicationQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000027 virtual void Execute() const override;
28
29private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000030 std::unique_ptr<arm_compute::IFunction> m_PixelWiseMultiplication;
telsoa014fcda012018-03-09 14:13:49 +000031};
32
33} //namespace armnn