C# Class ManagedCuda.CudaDNN.PoolingDescriptor

An opaque structure holding the description of a pooling operation.
Inheritance: IDisposable
Show file Open project: kunzmi/managedCuda Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose

GetPooling2dDescriptor ( cudnnPoolingMode &mode, cudnnNanPropagation &maxpoolingNanOpt, int &windowHeight, int &windowWidth, int &verticalPadding, int &horizontalPadding, int &verticalStride, int &horizontalStride ) : void

This function queries a previously created 2D pooling descriptor object.

GetPooling2dForwardOutputDim ( TensorDescriptor inputTensorDesc, int &outN, int &outC, int &outH, int &outW ) : void

This function provides the output dimensions of a tensor after 2d pooling has been applied

GetPoolingNdDescriptor ( int nbDimsRequested, cudnnPoolingMode &mode, cudnnNanPropagation &maxpoolingNanOpt, int &nbDims, int windowDimA, int paddingA, int strideA ) : void

This function queries a previously initialized generic pooling descriptor object.

GetPoolingNdForwardOutputDim ( TensorDescriptor inputTensorDesc, int nbDims, int outputTensorDimA ) : void

This function provides the output dimensions of a tensor after Nd pooling has been applied

PoolingDescriptor ( ) : System

SetPooling2dDescriptor ( cudnnPoolingMode mode, cudnnNanPropagation maxpoolingNanOpt, int windowHeight, int windowWidth, int verticalPadding, int horizontalPadding, int verticalStride, int horizontalStride ) : void

This function initializes a previously created generic pooling descriptor object into a 2D description.

SetPoolingNdDescriptor ( cudnnPoolingMode mode, cudnnNanPropagation maxpoolingNanOpt, int nbDims, int windowDimA, int paddingA, int strideA ) : void

This function initializes a previously created generic pooling descriptor object.

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void

For IDisposable

Method Details

Dispose() public method

Dispose
public Dispose ( ) : void
return void

Dispose() protected method

For IDisposable
protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

GetPooling2dDescriptor() public method

This function queries a previously created 2D pooling descriptor object.
public GetPooling2dDescriptor ( cudnnPoolingMode &mode, cudnnNanPropagation &maxpoolingNanOpt, int &windowHeight, int &windowWidth, int &verticalPadding, int &horizontalPadding, int &verticalStride, int &horizontalStride ) : void
mode cudnnPoolingMode Enumerant to specify the pooling mode.
maxpoolingNanOpt cudnnNanPropagation Nan propagation option for max pooling.
windowHeight int Height of the pooling window.
windowWidth int Width of the pooling window.
verticalPadding int Size of vertical padding.
horizontalPadding int Size of horizontal padding.
verticalStride int Pooling vertical stride.
horizontalStride int Pooling horizontal stride.
return void

GetPooling2dForwardOutputDim() public method

This function provides the output dimensions of a tensor after 2d pooling has been applied
public GetPooling2dForwardOutputDim ( TensorDescriptor inputTensorDesc, int &outN, int &outC, int &outH, int &outW ) : void
inputTensorDesc TensorDescriptor Handle to the previously initialized input tensor descriptor.
outN int Number of images in the output
outC int Number of channels in the output
outH int Height of images in the output
outW int Width of images in the output
return void

GetPoolingNdDescriptor() public method

This function queries a previously initialized generic pooling descriptor object.
public GetPoolingNdDescriptor ( int nbDimsRequested, cudnnPoolingMode &mode, cudnnNanPropagation &maxpoolingNanOpt, int &nbDims, int windowDimA, int paddingA, int strideA ) : void
nbDimsRequested int Dimension of the expected pooling descriptor. It is also the minimum /// size of the arrays windowDimA, paddingA and strideA in order to be /// able to hold the results
mode cudnnPoolingMode Enumerant to specify the pooling mode.
maxpoolingNanOpt cudnnNanPropagation Nan propagation option for max pooling.
nbDims int Actual dimension of the pooling descriptor.
windowDimA int Array of dimension of at least nbDimsRequested that will be filled with /// the window parameters from the provided pooling descriptor.
paddingA int Array of dimension of at least nbDimsRequested that will be filled with /// the padding parameters from the provided pooling descriptor.
strideA int Array of dimension at least nbDimsRequested that will be filled with /// the stride parameters from the provided pooling descriptor.
return void

GetPoolingNdForwardOutputDim() public method

This function provides the output dimensions of a tensor after Nd pooling has been applied
public GetPoolingNdForwardOutputDim ( TensorDescriptor inputTensorDesc, int nbDims, int outputTensorDimA ) : void
inputTensorDesc TensorDescriptor Handle to the previously initialized input tensor descriptor.
nbDims int Number of dimensions in which pooling is to be applied.
outputTensorDimA int Array of nbDims output dimensions
return void

PoolingDescriptor() public method

public PoolingDescriptor ( ) : System
return System

SetPooling2dDescriptor() public method

This function initializes a previously created generic pooling descriptor object into a 2D description.
public SetPooling2dDescriptor ( cudnnPoolingMode mode, cudnnNanPropagation maxpoolingNanOpt, int windowHeight, int windowWidth, int verticalPadding, int horizontalPadding, int verticalStride, int horizontalStride ) : void
mode cudnnPoolingMode Enumerant to specify the pooling mode.
maxpoolingNanOpt cudnnNanPropagation Nan propagation option for max pooling.
windowHeight int Height of the pooling window.
windowWidth int Width of the pooling window.
verticalPadding int Size of vertical padding.
horizontalPadding int Size of horizontal padding
verticalStride int Pooling vertical stride.
horizontalStride int Pooling horizontal stride.
return void

SetPoolingNdDescriptor() public method

This function initializes a previously created generic pooling descriptor object.
public SetPoolingNdDescriptor ( cudnnPoolingMode mode, cudnnNanPropagation maxpoolingNanOpt, int nbDims, int windowDimA, int paddingA, int strideA ) : void
mode cudnnPoolingMode Enumerant to specify the pooling mode.
maxpoolingNanOpt cudnnNanPropagation Nan propagation option for max pooling.
nbDims int Dimension of the pooling operation.
windowDimA int Array of dimension nbDims containing the window size for each dimension.
paddingA int Array of dimension nbDims containing the padding size for each dimension.
strideA int Array of dimension nbDims containing the striding size for each dimension.
return void