narpra01 | b9546cf | 2018-11-20 15:21:28 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include <Graph.hpp> |
| 8 | |
| 9 | using namespace armnn; |
| 10 | |
| 11 | namespace |
| 12 | { |
| 13 | |
| 14 | // Connects two layers. |
| 15 | void 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 | } |