Compute Library
 23.05
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, bool use_inf_as_limit=true, bool use_kernel_indices=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, bool use_inf_as_limit=true, bool use_kernel_indices=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
 
bool use_inf_as_limit
 
bool use_kernel_indices
 

Detailed Description

Pooling Layer Information struct.

Definition at line 1202 of file Types.h.

Constructor & Destructor Documentation

◆ PoolingLayerInfo() [1/4]

PoolingLayerInfo ( )
inline

Default Constructor.

Definition at line 1205 of file Types.h.

1207  pool_size(Size2D()),
1209  pad_stride_info(PadStrideInfo()),
1210  exclude_padding(false),
1211  is_global_pooling(false),
1212  fp_mixed_precision(false),
1213  use_inf_as_limit(true),
1214  use_kernel_indices(false)
1215  {
1216  }
PadStrideInfo pad_stride_info
Definition: Types.h:1306

◆ 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,
bool  use_inf_as_limit = true,
bool  use_kernel_indices = 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.
[in]use_inf_as_limit(Optional) Use inf to represent the limits of datatypes range, instead of using "lowest" property of the data type.
[in]use_kernel_indices(Optional) Use kernel indices instead of using source indices while computing indices tensor.

Definition at line 1230 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,
bool  use_inf_as_limit = true,
bool  use_kernel_indices = 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.
[in]use_inf_as_limit(Optional) Use inf to represent the limits of datatypes range, instead of using "lowest" property of the data type.
[in]use_kernel_indices(Optional) Use kernel indices instead of using source indices while computing indices tensor.

Definition at line 1263 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 1290 of file Types.h.

1291  : pool_type(pool_type),
1292  pool_size(Size2D()),
1294  pad_stride_info(PadStrideInfo(1, 1, 0, 0)),
1295  exclude_padding(false),
1296  is_global_pooling(true),
1297  fp_mixed_precision(false),
1298  use_inf_as_limit(true),
1299  use_kernel_indices(false)
1300  {
1301  }
PadStrideInfo pad_stride_info
Definition: Types.h:1306

Field Documentation

◆ data_layout

◆ exclude_padding

◆ fp_mixed_precision

bool fp_mixed_precision

◆ is_global_pooling

◆ pad_stride_info

◆ pool_size

◆ pool_type

◆ use_inf_as_limit

◆ use_kernel_indices


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