24.08
ClAdditionWorkload.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
ClAdditionWorkload
:
public
ClBaseWorkload
<AdditionQueueDescriptor>
16
{
17
public
:
18
ClAdditionWorkload
(
const
AdditionQueueDescriptor
& descriptor,
19
const
WorkloadInfo
&
info
,
20
const
arm_compute::CLCompileContext& clCompileContext);
21
22
void
Execute
()
const override
;
23
24
private
:
25
mutable
arm_compute::CLArithmeticAddition m_Layer;
26
};
27
28
arm_compute::Status
ClAdditionValidate
(
const
TensorInfo
& input0,
29
const
TensorInfo
& input1,
30
const
TensorInfo
& output,
31
const
ActivationDescriptor
* activationDescriptor =
nullptr
);
32
}
//namespace armnn
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition:
Descriptors.hpp:36
armnn::TensorInfo
Definition:
Tensor.hpp:152
armnn::ClAdditionWorkload::ClAdditionWorkload
ClAdditionWorkload(const AdditionQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition:
ClAdditionWorkload.cpp:21
armnn::ClBaseWorkload
Definition:
ClBaseWorkload.hpp:13
armnn::ClAdditionValidate
arm_compute::Status ClAdditionValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
Definition:
ClAdditionWorkload.cpp:45
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition:
WorkloadInfo.hpp:16
armnn::ClAdditionWorkload::Execute
void Execute() const override
Definition:
ClAdditionWorkload.cpp:39
armnn::AdditionQueueDescriptor
Definition:
WorkloadData.hpp:258
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition:
Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
ClBaseWorkload.hpp
armnn::ClAdditionWorkload
Definition:
ClAdditionWorkload.hpp:15
src
backends
cl
workloads
ClAdditionWorkload.hpp
Generated on Wed Aug 28 2024 14:31:50 for Arm NN by
1.8.17