aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/ElementwiseFunction.hpp
blob: fd1fab0690561ad3e0671eb47cab81eff4dadf40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include "BaseIterator.hpp"
#include <armnn/Tensor.hpp>

namespace armnn
{

template <typename Functor>
struct ElementwiseFunction
{
    using OutType = typename Functor::result_type;
    using InType = typename Functor::first_argument_type;

    ElementwiseFunction(const TensorShape& inShape0,
                        const TensorShape& inShape1,
                        const TensorShape& outShape,
                        armnn::Decoder<InType>& inData0,
                        armnn::Decoder<InType>& inData1,
                        armnn::Encoder<OutType>& outData);
};

} //namespace armnn