ArmNN
 24.02
ClSubtractionWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
9 
10 #include <arm_compute/runtime/CL/functions/CLElementwiseOperations.h>
11 
12 namespace armnn
13 {
14 
15 class ClSubtractionWorkload : public ClBaseWorkload<SubtractionQueueDescriptor>
16 {
17 public:
19  const WorkloadInfo& info,
20  const arm_compute::CLCompileContext& clCompileContext);
21 
22  void Execute() const override;
23 
24 private:
25  mutable arm_compute::CLArithmeticSubtraction m_Layer;
26 };
27 
29  const TensorInfo& input1,
30  const TensorInfo& output,
31  const ActivationDescriptor* activationDescriptor = nullptr);
32 } //namespace armnn
armnn::ClSubtractionWorkload
Definition: ClSubtractionWorkload.hpp:15
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::ClSubtractionValidate
arm_compute::Status ClSubtractionValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
Definition: ClSubtractionWorkload.cpp:46
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClSubtractionWorkload::Execute
void Execute() const override
Definition: ClSubtractionWorkload.cpp:40
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition: Types.hpp:42
armnn::SubtractionQueueDescriptor
Definition: WorkloadData.hpp:276
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ClSubtractionWorkload::ClSubtractionWorkload
ClSubtractionWorkload(const SubtractionQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClSubtractionWorkload.cpp:21
ClBaseWorkload.hpp