Compute Library
 22.05
L2NormalizeLayer Class Referencefinal

L2 Normalize Layer. More...

#include <Layers.h>

Collaboration diagram for L2NormalizeLayer:
[legend]

Public Member Functions

 L2NormalizeLayer (int axis, float epsilon)
 Construct a L2 Normalize layer. More...
 
NodeID create_layer (IStream &s) override
 Create layer and add to the given stream. More...
 
- Public Member Functions inherited from ILayer
virtual ~ILayer ()=default
 Default destructor. More...
 
ILayerset_name (std::string name)
 Sets the name of the layer. More...
 
const std::string & name () const
 Layer name accessor. More...
 

Detailed Description

L2 Normalize Layer.

Definition at line 842 of file Layers.h.

Constructor & Destructor Documentation

◆ L2NormalizeLayer()

L2NormalizeLayer ( int  axis,
float  epsilon 
)
inline

Construct a L2 Normalize layer.

Parameters
[in]axisAxis to perform normalization on
[in]epsilonLower bound value for the normalization

Definition at line 850 of file Layers.h.

851  : _axis(axis), _epsilon(epsilon)
852  {
853  }

Member Function Documentation

◆ create_layer()

NodeID create_layer ( IStream s)
inlineoverridevirtual

Create layer and add to the given stream.

Parameters
[in]sStream to add layer to.
Returns
ID of the created node.

Implements ILayer.

Definition at line 855 of file Layers.h.

References GraphBuilder::add_l2_normalize_node(), IStream::graph(), IStream::hints(), arm_compute::test::validation::input, ILayer::name(), IStream::tail_node(), and StreamHints::target_hint.

856  {
857  NodeParams common_params = { name(), s.hints().target_hint };
858  NodeIdxPair input = { s.tail_node(), 0 };
859  return GraphBuilder::add_l2_normalize_node(s.graph(), common_params, input, _axis, _epsilon);
860  }
static NodeID add_l2_normalize_node(Graph &g, NodeParams params, NodeIdxPair input, int axis, float epsilon)
Adds a L2 Normalize layer node to the graph.
const std::string & name() const
Layer name accessor.
Definition: ILayer.h:64

The documentation for this class was generated from the following file: