10 using namespace armnn;
13 unsigned int fromIndex,
unsigned int toIndex)
22 catch (
const std::out_of_range& exc)
24 std::ostringstream message;
28 message <<
"Tried to connect bias to FullyConnected layer when bias is not enabled: ";
31 message <<
"Failed to connect to input slot " 37 <<
" as the slot does not exist or is unavailable";
59 return runtime->m_ProfilingService;
profiling::ProfilingService & GetProfilingService(armnn::RuntimeImpl *runtime)
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
std::vector< BackendOptions > ModelOptions
Copyright (c) 2021 ARM Limited and Contributors.
virtual void SetTensorInfo(const TensorInfo &tensorInfo)=0
std::unique_ptr< OptimizedNetworkImpl > pOptimizedNetworkImpl
#define ARMNN_ASSERT(COND)
virtual LayerType GetType() const =0
Returns the armnn::LayerType of this layer.
Graph & GetGraphForTesting(IOptimizedNetwork *optNet)
virtual const IInputSlot & GetInputSlot(unsigned int index) const =0
Get a const input slot handle by slot index.
ModelOptions & GetModelOptionsForTesting(IOptimizedNetwork *optNet)
virtual const IOutputSlot & GetOutputSlot(unsigned int index) const =0
Get the const output slot handle by slot index.
virtual const char * GetName() const =0
Returns the name of the layer.
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex, unsigned int toIndex)
virtual int Connect(IInputSlot &destination)=0
const char * GetLayerTypeAsCString(LayerType type)