ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RefElementwiseWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022, 2024 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/Types.hpp>
9 #include "RefBaseWorkload.hpp"
11 #include "BaseIterator.hpp"
12 #include "ElementwiseFunction.hpp"
13 #include "Maximum.hpp"
14 #include "Minimum.hpp"
15 #include "StringMapping.hpp"
16 
17 namespace armnn
18 {
19 
20 template <typename Functor, typename ParentDescriptor, typename armnn::StringMapping::Id DebugString>
21 class RefElementwiseWorkload : public RefBaseWorkload<ParentDescriptor>
22 {
23 public:
24  RefElementwiseWorkload(const ParentDescriptor& descriptor, const WorkloadInfo& info);
25  void Execute() const override;
26 
27 private:
28  using InType = typename ElementwiseBinaryFunction<Functor>::InType;
29  using OutType = typename ElementwiseBinaryFunction<Functor>::OutType;
31 
32  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
33 };
34 
35 template <typename DataType = float>
40 
41 template <typename DataType = float>
46 
47 template <typename DataType = float>
52 
53 template <typename DataType = float>
58 
59 template <typename DataType = float>
64 
65 template <typename DataType = float>
70 
71 } // armnn
RefElementwiseWorkload(const ParentDescriptor &descriptor, const WorkloadInfo &info)
Copyright (c) 2021 ARM Limited and Contributors.
typename Functor::first_argument_type InType
typename Functor::result_type OutType
Contains information about TensorInfos of a layer.