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

#pragma once

#include "BaseIterator.hpp"
#include "Decoders.hpp"
#include "Encoders.hpp"
#include <armnn/Tensor.hpp>
#include <backendsCommon/WorkloadData.hpp>

namespace armnn
{

/// Performs a matrix multiplication and optionally adds a bias.
void FullyConnected(const TensorShape& rInputShape,
                    Decoder<float>& rInputDecoder,
                    const TensorShape& rOutputShape,
                    Encoder<float>& rOutputEncoder,
                    const TensorShape& rWeightsShape,
                    Decoder<float>& rWeightDecoder,
                    Decoder<float>& rBiasDecoder,
                    bool biasEnabled,
                    unsigned int K,
                    bool transposeWeights);

} //namespace armnn