virtual std::unique_ptr< IWorkload > CreateL2Normalization(const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info) const
L2NormalizationDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
const L2NormalizationDescriptor & GetParameters() const
const TensorShape & GetShape() const
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Infer the shape of the output(s) based on the provided input shape(s)
void Accept(ILayerVisitor &visitor) const override
Apply a visitor to this layer.
void VerifyShapeInferenceType(const TensorShape &outputShape, ShapeInferenceMethod shapeInferenceMethod)
Copyright (c) 2021 ARM Limited and Contributors.
void ValidateAndCopyShape(const TensorShape &outputShape, const TensorShape &inferredShape, const ShapeInferenceMethod shapeInferenceMethod, const std::string &layerName, const unsigned int outputSlotIndex=0)
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
A L2NormalizationDescriptor for the L2NormalizationLayer.
#define ARMNN_ASSERT(COND)
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of L2NormalizationLayer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the L2Normalization type.
void SetAdditionalInfo(QueueDescriptor &descriptor) const
This layer represents a L2 normalization operation.
L2NormalizationLayer(const L2NormalizationDescriptor ¶m, const char *name)
Constructor to create a L2NormalizationLayer.
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.
virtual const TensorInfo & GetTensorInfo() const =0
const char * GetName() const override
Returns the name of the layer.
virtual void VisitL2NormalizationLayer(const IConnectableLayer *layer, const L2NormalizationDescriptor &desc, const char *name=nullptr)=0
Function that an L2 normalization layer should call back to when its Accept(ILayerVisitor&) function ...
const TensorInfo & GetTensorInfo() const override
L2NormalizationLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
ShapeInferenceMethod m_ShapeInferenceMethod
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...