aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/Activation.hpp
blob: ffe3c5fc5d61adce2c0a9e6d2142b59ce40cd675 (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
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#include "BaseIterator.hpp"

#include <armnn/Tensor.hpp>
#include <armnn/Types.hpp>

namespace armnn
{
float Activation(float in,
                 ActivationFunction function,
                 float a,
                 float b);

void Activation(Decoder<float>& in,
                Encoder<float>& out,
                const TensorInfo& tensorInfo,
                ActivationFunction function,
                float a,
                float b);

// This is still used by Reference LSTM implementation
void Activation(const float* in,
                float* out,
                const TensorInfo& tensorInfo,
                ActivationFunction function,
                float a,
                float b);
} //namespace armnn