blob: 461449cc3505d8f19c9c0f6fcd0841e937d9fb67 [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
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <backendsCommon/Workload.hpp>
Matthew Bentham14e46692018-09-20 15:35:30 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLPixelWiseMultiplication.h>
telsoa014fcda012018-03-09 14:13:49 +000011
12namespace armnn
13{
telsoa01c577f2c2018-08-31 09:22:23 +010014
15arm_compute::Status ClMultiplicationWorkloadValidate(const TensorInfo& input0,
16 const TensorInfo& input1,
Mike Kelly07810fc2020-11-12 10:58:48 +000017 const TensorInfo& output,
18 const ActivationDescriptor* activationDescriptor = nullptr);
telsoa01c577f2c2018-08-31 09:22:23 +010019
Matthew Benthame2ec3302018-10-01 11:32:48 +010020class ClMultiplicationWorkload : public BaseWorkload<MultiplicationQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000021{
22public:
Matthew Benthame2ec3302018-10-01 11:32:48 +010023 ClMultiplicationWorkload(const MultiplicationQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000024
Matthew Benthame2ec3302018-10-01 11:32:48 +010025 using BaseWorkload<MultiplicationQueueDescriptor>::BaseWorkload;
telsoa014fcda012018-03-09 14:13:49 +000026 void Execute() const override;
27
28private:
29 mutable arm_compute::CLPixelWiseMultiplication m_PixelWiseMultiplication;
30};
31
32} //namespace armnn
33
34
35