blob: ddc073839b942b8136da423322e5e78bc88d6337 [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>
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
Teresa Charlin588cbdf2022-01-19 15:55:37 +000023class NeonMultiplicationWorkload : public NeonBaseWorkload<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