Compute Library
PoolingLayer Class Referencefinal

Pooling Layer. More...

#include <Layers.h>

Collaboration diagram for PoolingLayer:

Public Member Functions

 PoolingLayer (PoolingLayerInfo pool_info)
 Construct a pooling 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

Pooling Layer.

Definition at line 977 of file Layers.h.

Constructor & Destructor Documentation

◆ PoolingLayer()

PoolingLayer ( PoolingLayerInfo  pool_info)

Construct a pooling layer.

[in]pool_infoPooling information.

Definition at line 984 of file Layers.h.

985  : _pool_info(pool_info)
986  {
987  }

Member Function Documentation

◆ create_layer()

NodeID create_layer ( IStream s)

Create layer and add to the given stream.

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

Implements ILayer.

Definition at line 989 of file Layers.h.

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

990  {
991  NodeParams common_params = { name(), s.hints().target_hint };
992  NodeIdxPair input = { s.tail_node(), 0 };
993  return GraphBuilder::add_pooling_node(s.graph(), common_params, input, _pool_info);
994  }
const std::string & name() const
Layer name accessor.
Definition: ILayer.h:64
static NodeID add_pooling_node(Graph &g, NodeParams params, NodeIdxPair input, PoolingLayerInfo pool_info)
Adds a pooling layer node to the graph.

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