24.02
|
Go to the documentation of this file.
10 #include "armnnTestUtils/Version.hpp"
12 using namespace armnn;
15 unsigned int fromIndex,
unsigned int toIndex)
24 catch (
const std::out_of_range& exc)
26 std::ostringstream message;
30 message <<
"Tried to connect bias to FullyConnected layer when bias is not enabled: ";
33 message <<
"Failed to connect to input slot "
39 <<
" as the slot does not exist or is unavailable";
61 return *(runtime->m_ProfilingService.get());
#define ARMNN_ASSERT(COND)
const char * GetLayerTypeAsCString(LayerType type)
virtual const char * GetName() const =0
Returns the name of the layer.
arm::pipe::IProfilingService & GetProfilingService(armnn::RuntimeImpl *runtime)
virtual void SetTensorInfo(const TensorInfo &tensorInfo)=0
virtual LayerType GetType() const =0
Returns the armnn::LayerType of this layer.
virtual int Connect(IInputSlot &destination)=0
virtual const IOutputSlot & GetOutputSlot(unsigned int index) const =0
Get the const output slot handle by slot index.
Copyright (c) 2021 ARM Limited and Contributors.
virtual const IInputSlot & GetInputSlot(unsigned int index) const =0
Get a const input slot handle by slot index.
Graph & GetGraphForTesting(IOptimizedNetwork *optNet)
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
std::vector< BackendOptions > ModelOptions
ModelOptions & GetModelOptionsForTesting(IOptimizedNetwork *optNet)
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex, unsigned int toIndex)
std::unique_ptr< OptimizedNetworkImpl > pOptimizedNetworkImpl