Compute Library
 20.02.1
ROIPoolingLayerInfo Class Referencefinal

ROI Pooling Layer Information class. More...

#include <Types.h>

Public Member Functions

 ROIPoolingLayerInfo (unsigned int pooled_width, unsigned int pooled_height, float spatial_scale, unsigned int sampling_ratio=0)
 Constructor. More...
 
unsigned int pooled_width () const
 Get the pooled width of the layer. More...
 
unsigned int pooled_height () const
 Get the pooled height of the layer. More...
 
float spatial_scale () const
 Get the spatial scale. More...
 
unsigned int sampling_ratio () const
 Get sampling ratio. More...
 

Detailed Description

ROI Pooling Layer Information class.

Definition at line 1374 of file Types.h.

Constructor & Destructor Documentation

◆ ROIPoolingLayerInfo()

ROIPoolingLayerInfo ( unsigned int  pooled_width,
unsigned int  pooled_height,
float  spatial_scale,
unsigned int  sampling_ratio = 0 
)
inline

Constructor.

Parameters
[in]pooled_widthPooled width of the layer.
[in]pooled_heightPooled height of the layer.
[in]spatial_scaleSpatial scale to be applied to the ROI coordinates and dimensions.
[in]sampling_ratioNumber of samples to include in each pooling region (if set to zero, a ceil(roi_dims/pooling_dims))

Definition at line 1384 of file Types.h.

1385  : _pooled_width(pooled_width), _pooled_height(pooled_height), _spatial_scale(spatial_scale), _sampling_ratio(sampling_ratio)
1386  {
1387  }
unsigned int pooled_width() const
Get the pooled width of the layer.
Definition: Types.h:1389
unsigned int sampling_ratio() const
Get sampling ratio.
Definition: Types.h:1404
unsigned int pooled_height() const
Get the pooled height of the layer.
Definition: Types.h:1394
float spatial_scale() const
Get the spatial scale.
Definition: Types.h:1399

Member Function Documentation

◆ pooled_height()

◆ pooled_width()

◆ sampling_ratio()

unsigned int sampling_ratio ( ) const
inline

Get sampling ratio.

Definition at line 1404 of file Types.h.

1405  {
1406  return _sampling_ratio;
1407  }

Referenced by CLROIAlignLayerKernel::configure(), and arm_compute::test::validation::reference::roi_align_layer().

◆ spatial_scale()

float spatial_scale ( ) const
inline

Get the spatial scale.

Definition at line 1399 of file Types.h.

1400  {
1401  return _spatial_scale;
1402  }

Referenced by CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), arm_compute::operator<<(), arm_compute::test::validation::reference::roi_align_layer(), and NEROIPoolingLayerKernel::run().


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