12 template <
typename Parameters>
30 unsigned int numOutputSlots,
32 const Parameters& param,
34 :
Layer(numInputSlots, numOutputSlots, type, name)
42 template <
typename QueueDescriptor>
45 descriptor.m_Parameters =
m_Param;
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const Parameters ¶m, const char *name)
Parameters m_Param
The parameters for the layer (not including tensor-valued weights etc.).
const Parameters & GetParameters() const
virtual void ExecuteStrategy(const armnn::IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0
void SerializeLayerParameters(ParameterStringifyFunction &fn) const override
Helper to serialize the layer parameters to string (currently used in DotSerializer and company)...
Copyright (c) 2021 ARM Limited and Contributors.
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
~LayerWithParameters()=default
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
virtual void SerializeLayerParameters(ParameterStringifyFunction &fn) const
Helper to serialize the layer parameters to string.
Contains information about TensorInfos of a layer.
const char * GetName() const override
Returns the name of the layer.
std::function< void(const std::string &name, const std::string &value)> ParameterStringifyFunction
static void Serialize(ParameterStringifyFunction &, const LayerParameter &)
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...