blob: 9f51de645b188576b86a8de1f881ce058d1db795 [file] [log] [blame]
David Beck4a8692c2018-09-07 16:19:24 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
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/CLElementwiseOperations.h>
David Beck4a8692c2018-09-07 16:19:24 +010011
12namespace armnn
13{
14
Matthew Bentham092b3042018-10-01 16:39:28 +010015class ClSubtractionWorkload : public BaseWorkload<SubtractionQueueDescriptor>
David Beck4a8692c2018-09-07 16:19:24 +010016{
17public:
David Beck0a710c42018-09-11 15:21:14 +010018 ClSubtractionWorkload(const SubtractionQueueDescriptor& descriptor, const WorkloadInfo& info);
David Beck4a8692c2018-09-07 16:19:24 +010019
20 void Execute() const override;
21
22private:
23 mutable arm_compute::CLArithmeticSubtraction m_Layer;
24};
25
arovir01085f0a42018-10-08 14:48:19 +010026arm_compute::Status ClSubtractionValidate(const TensorInfo& input0,
27 const TensorInfo& input1,
Mike Kelly07810fc2020-11-12 10:58:48 +000028 const TensorInfo& output,
29 const ActivationDescriptor* activationDescriptor = nullptr);
David Beck4a8692c2018-09-07 16:19:24 +010030} //namespace armnn