Constructor RoiAlign
RoiAlign(string, string, string, string, RoiPoolingMode, int, int, int, float)
Initializes and returns an instance of RoiAlign
region of interest alignment layer.
Declaration
public RoiAlign(string name, string input, string rois, string batchIndices, RoiPoolingMode mode, int outputHeight, int outputWidth, int samplingRatio, float spatialScale)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use for the output tensor of the layer. |
string | input | The name to use for the input tensor of the layer. |
string | rois | The name to use for the region of interest tensor of the layer. |
string | batchIndices | The name to use for the 1D input tensor where each element denotes the index of the image in the batch for a given region of interest. |
RoiPoolingMode | mode | The pooling mode of the operation as an |
int | outputHeight | The height of the output tensor. |
int | outputWidth | The width of the output tensor. |
int | samplingRatio | The number of sampling points in the interpolation grid used to compute the output value of each pooled output bin. |
float | spatialScale | The multiplicative spatial scale factor used to translate coordinates from their input spatial scale to the scale used when pooling. |