24.02
|
Go to the documentation of this file.
36 ConditionalThrow<LayerValidationException>(
GetInputSlot(0).GetConnection() !=
nullptr,
37 "OutputLayer: Input slot must be connected.");
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of OutputLayer.
OutputLayer(LayerBindingId id, const char *name)
Constructor to create an OutputLayer.
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
const char * GetName() const override
Returns the name of the layer.
A layer user-provided data can be bound to (e.g. inputs, outputs).
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
LayerBindingId GetBindingId() const
virtual const BaseDescriptor & GetParameters() const override
If the layer has a descriptor return it.
void IgnoreUnused(Ts &&...)
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
Copyright (c) 2021 ARM Limited and Contributors.
OutputLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Returns nullptr for Output type.
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
virtual void ExecuteStrategy(const IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0