Compute Library
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 1309 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 


[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 1319 of file Types.h.

1320  : _pooled_width(pooled_width), _pooled_height(pooled_height), _spatial_scale(spatial_scale), _sampling_ratio(sampling_ratio)
1321  {
1322  }
unsigned int pooled_width() const
Get the pooled width of the layer.
Definition: Types.h:1324
unsigned int sampling_ratio() const
Get sampling ratio.
Definition: Types.h:1339
unsigned int pooled_height() const
Get the pooled height of the layer.
Definition: Types.h:1329
float spatial_scale() const
Get the spatial scale.
Definition: Types.h:1334

Member Function Documentation

◆ pooled_height()

◆ pooled_width()

◆ sampling_ratio()

unsigned int sampling_ratio ( ) const

Get sampling ratio.

Definition at line 1339 of file Types.h.

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

1340  {
1341  return _sampling_ratio;
1342  }

◆ spatial_scale()

float spatial_scale ( ) const

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