ArmNN
NotReleased
ElementwiseFunction.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include "
BaseIterator.hpp
"
9
#include <
armnn/Tensor.hpp
>
10
11
namespace
armnn
12
{
13
14
template
<
typename
Functor>
15
struct
ElementwiseBinaryFunction
16
{
17
using
OutType
=
typename
Functor::result_type;
18
using
InType
=
typename
Functor::first_argument_type;
19
20
ElementwiseBinaryFunction
(
const
TensorShape
& inShape0,
21
const
TensorShape
& inShape1,
22
const
TensorShape
& outShape,
23
Decoder<InType>
& inData0,
24
Decoder<InType>
& inData1,
25
Encoder<OutType>
& outData);
26
};
27
28
template
<
typename
Functor>
29
struct
ElementwiseUnaryFunction
30
{
31
using
OutType
=
typename
Functor::result_type;
32
using
InType
=
typename
Functor::argument_type;
33
34
ElementwiseUnaryFunction
(
const
TensorShape
& inShape,
35
const
TensorShape
& outShape,
36
Decoder<InType>
& inData,
37
Encoder<OutType>
& outData);
38
};
39
40
}
//namespace armnn
armnn::ElementwiseUnaryFunction::InType
typename Functor::argument_type InType
Definition:
ElementwiseFunction.hpp:32
armnn::ElementwiseUnaryFunction
Definition:
ElementwiseFunction.hpp:29
armnn::ElementwiseBinaryFunction::OutType
typename Functor::result_type OutType
Definition:
ElementwiseFunction.hpp:17
armnn::Decoder
Definition:
BaseIterator.hpp:39
BaseIterator.hpp
armnn::ElementwiseBinaryFunction::ElementwiseBinaryFunction
ElementwiseBinaryFunction(const TensorShape &inShape0, const TensorShape &inShape1, const TensorShape &outShape, Decoder< InType > &inData0, Decoder< InType > &inData1, Encoder< OutType > &outData)
Definition:
ElementwiseFunction.cpp:21
armnn::Encoder
Definition:
BaseIterator.hpp:52
armnn::ElementwiseBinaryFunction::InType
typename Functor::first_argument_type InType
Definition:
ElementwiseFunction.hpp:18
armnn
Definition:
BackendHelper.hpp:11
armnn::TensorShape
Definition:
Tensor.hpp:20
Tensor.hpp
armnn::ElementwiseBinaryFunction
Definition:
ElementwiseFunction.hpp:15
armnn::ElementwiseUnaryFunction::OutType
typename Functor::result_type OutType
Definition:
ElementwiseFunction.hpp:31
src
backends
reference
workloads
ElementwiseFunction.hpp
Generated on Fri Mar 13 2020 16:06:58 for ArmNN by
1.8.13