Compute Library
 21.02
PoolingLayerInfo Struct Reference

Pooling Layer Information struct. More...

#include <Types.h>

Collaboration diagram for PoolingLayerInfo:
[legend]

Public Member Functions

 PoolingLayerInfo ()
 Default Constructor. More...
 
 PoolingLayerInfo (PoolingType pool_type, unsigned int pool_size, DataLayout data_layout, PadStrideInfo pad_stride_info=PadStrideInfo(), bool exclude_padding=false, bool fp_mixed_precision=false)
 Constructor. More...
 
 PoolingLayerInfo (PoolingType pool_type, Size2D pool_size, DataLayout data_layout, PadStrideInfo pad_stride_info=PadStrideInfo(), bool exclude_padding=false, bool fp_mixed_precision=false)
 Constructor. More...
 
 PoolingLayerInfo (PoolingType pool_type, DataLayout data_layout)
 Constructor. More...
 

Data Fields

PoolingType pool_type
 
Size2D pool_size
 
DataLayout data_layout
 
PadStrideInfo pad_stride_info
 
bool exclude_padding
 
bool is_global_pooling
 
bool fp_mixed_precision
 

Detailed Description

Pooling Layer Information struct.

Definition at line 1214 of file Types.h.

Constructor & Destructor Documentation

◆ PoolingLayerInfo() [1/4]

PoolingLayerInfo ( )
inline

Default Constructor.

Definition at line 1217 of file Types.h.

1219  pool_size(Size2D()),
1221  pad_stride_info(PadStrideInfo()),
1222  exclude_padding(false),
1223  is_global_pooling(false),
1224  fp_mixed_precision(false)
1225  {
1226  }
PadStrideInfo pad_stride_info
Definition: Types.h:1302

◆ PoolingLayerInfo() [2/4]

PoolingLayerInfo ( PoolingType  pool_type,
unsigned int  pool_size,
DataLayout  data_layout,
PadStrideInfo  pad_stride_info = PadStrideInfo(),
bool  exclude_padding = false,
bool  fp_mixed_precision = false 
)
inlineexplicit

Constructor.

Parameters
[in]pool_typePooling type PoolingType.
[in]pool_sizePooling size, in elements, across x and y.
[in]data_layoutData layout used by the layer DataLayout
[in]pad_stride_info(Optional) Padding and stride information PadStrideInfo
[in]exclude_padding(Optional) Strategy when accounting padding in calculations. True will exclude padding while false will not (Used in AVG/L2 pooling to determine the pooling area). Defaults to false;
[in]fp_mixed_precision(Optional) Use wider accumulators (32 bit instead of 16 for FP16) to improve accuracy.

Definition at line 1238 of file Types.h.

◆ PoolingLayerInfo() [3/4]

PoolingLayerInfo ( PoolingType  pool_type,
Size2D  pool_size,
DataLayout  data_layout,
PadStrideInfo  pad_stride_info = PadStrideInfo(),
bool  exclude_padding = false,
bool  fp_mixed_precision = false 
)
inlineexplicit

Constructor.

Parameters
[in]pool_typePooling type PoolingType.
[in]pool_sizePooling size, in elements, across x and y.
[in]data_layoutData layout used by the layer DataLayout
[in]pad_stride_info(Optional) Padding and stride information PadStrideInfo
[in]exclude_padding(Optional) Strategy when accounting padding in calculations. True will exclude padding while false will not (Used in AVG/L2 pooling to determine the pooling area). Defaults to false;
[in]fp_mixed_precision(Optional) Use wider accumulators (32 bit instead of 16 for FP16) to improve accuracy.

Definition at line 1265 of file Types.h.

◆ PoolingLayerInfo() [4/4]

PoolingLayerInfo ( PoolingType  pool_type,
DataLayout  data_layout 
)
inlineexplicit

Constructor.

Note
This constructor is used for global pooling
Parameters
[in]pool_typePooling type PoolingType.
[in]data_layoutData layout used by the layer DataLayout

Definition at line 1288 of file Types.h.

1289  : pool_type(pool_type),
1290  pool_size(Size2D()),
1292  pad_stride_info(PadStrideInfo(1, 1, 0, 0)),
1293  exclude_padding(false),
1294  is_global_pooling(true),
1295  fp_mixed_precision(false)
1296  {
1297  }
PadStrideInfo pad_stride_info
Definition: Types.h:1302

Field Documentation

◆ data_layout

◆ exclude_padding

◆ fp_mixed_precision

bool fp_mixed_precision

◆ is_global_pooling

◆ pad_stride_info

◆ pool_size

◆ pool_type


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