1 // 2 // Copyright © 2017 Arm Ltd. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #include "TestUtils.hpp" 7 8 #include <armnn/utility/Assert.hpp> 9 10 using namespace armnn; 11 Connect(armnn::IConnectableLayer * from,armnn::IConnectableLayer * to,const armnn::TensorInfo & tensorInfo,unsigned int fromIndex,unsigned int toIndex)12void Connect(armnn::IConnectableLayer* from, armnn::IConnectableLayer* to, const armnn::TensorInfo& tensorInfo, 13 unsigned int fromIndex, unsigned int toIndex) 14 { 15 ARMNN_ASSERT(from); 16 ARMNN_ASSERT(to); 17 18 from->GetOutputSlot(fromIndex).Connect(to->GetInputSlot(toIndex)); 19 from->GetOutputSlot(fromIndex).SetTensorInfo(tensorInfo); 20 } 21 22 namespace armnn 23 { 24 GetProfilingService(armnn::Runtime * runtime)25profiling::ProfilingService& GetProfilingService(armnn::Runtime* runtime) 26 { 27 return runtime->m_ProfilingService; 28 } 29 30 }