blob: 8259ba5ac730abe249c8b4c92d8eeee2821cd666 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
//
// 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 ElementwiseBinaryFunction
{
using OutType = typename Functor::result_type;
using InType = typename Functor::first_argument_type;
ElementwiseBinaryFunction(const TensorShape& inShape0,
const TensorShape& inShape1,
const TensorShape& outShape,
Decoder<InType>& inData0,
Decoder<InType>& inData1,
Encoder<OutType>& outData);
};
template <typename Functor>
struct ElementwiseUnaryFunction
{
using OutType = typename Functor::result_type;
using InType = typename Functor::argument_type;
ElementwiseUnaryFunction(const TensorShape& inShape,
const TensorShape& outShape,
Decoder<InType>& inData,
Encoder<OutType>& outData);
};
} //namespace armnn
|