blob: 68180fb2897fbfa84e98c394945165c58dc4731c [file] [log] [blame]
narpra01b9546cf2018-11-20 15:21:28 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
7#include <Graph.hpp>
8
9using namespace armnn;
10
11namespace
12{
13
14// Connects two layers.
15void Connect(IConnectableLayer* from, IConnectableLayer* to, const TensorInfo& tensorInfo,
16 unsigned int fromIndex = 0, unsigned int toIndex = 0)
17{
18 from->GetOutputSlot(fromIndex).Connect(to->GetInputSlot(toIndex));
19 from->GetOutputSlot(fromIndex).SetTensorInfo(tensorInfo);
20}
21
22}