23 throw Exception(
"Stand in layer does not support creating workloads");
34 throw Exception(
"Stand in layer does not support infering output shapes");
Base class for all ArmNN exceptions so that users can filter to just those.
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
const char * GetName() const override
Returns the name of the layer.
StandInDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
const StandInDescriptor & GetParameters() const override
This layer represents an unknown operation in the input graph.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Empty implementation that throws Exception if called.
StandInLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) Does nothing since cannot validate any properties of this layer.
StandInLayer(const StandInDescriptor ¶m, const char *name)
Constructor to create a StandInLayer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Empty implementation explictly does NOT create a workload.
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
A StandInDescriptor for the StandIn layer.