Library/ManagedCuda/CudaDNN/PoolingDescriptor.cs
/// <summary>
/// This function initializes a previously created generic pooling descriptor object into a 2D description.
/// </summary>
/// <param name="mode">Enumerant to specify the pooling mode.</param>
/// <param name="maxpoolingNanOpt">Nan propagation option for max pooling.</param>
/// <param name="windowHeight">Height of the pooling window.</param>
/// <param name="windowWidth">Width of the pooling window.</param>
/// <param name="verticalPadding">Size of vertical padding.</param>
/// <param name="horizontalPadding">Size of horizontal padding</param>
/// <param name="verticalStride">Pooling vertical stride.</param>
/// <param name="horizontalStride">Pooling horizontal stride.</param>
This function initializes a previously created generic pooling descriptor object into a 2D description.
This function initializes a previously created generic pooling descriptor object into a 2D description .
public void SetPooling2dDescriptor(cudnnPoolingMode mode,
                                            cudnnNanPropagation maxpoolingNanOpt,
                                            int windowHeight,
										    int windowWidth,
										    int verticalPadding,
										    int horizontalPadding,
										    int verticalStride,
										    int horizontalStride
														   )
		{
			res = CudaDNNNativeMethods.cudnnSetPooling2dDescriptor(_desc, mode, maxpoolingNanOpt, windowHeight, windowWidth, verticalPadding, horizontalPadding, verticalStride, horizontalStride);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetPooling2dDescriptor", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void SetPooling2dDescriptor ( cudnnPoolingMode mode , cudnnNanPropagation maxpoolingNanOpt , int windowHeight , int windowWidth , int verticalPadding , int horizontalPadding , int verticalStride , int horizontalStride ) { res = CudaDNNNativeMethods . cudnnSetPooling2dDescriptor ( _desc , mode , maxpoolingNanOpt , windowHeight , windowWidth , verticalPadding , horizontalPadding , verticalStride , horizontalStride ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function initializes a previously created generic pooling descriptor object into a 2D description.
This function initializes a previously created generic pooling descriptor object into a 2D description .
mode
cudnnPoolingMode
Enumerant to specify the pooling mode.
Enumerant to specify the pooling mode .
maxpoolingNanOpt
cudnnNanPropagation
Nan propagation option for max pooling.
Nan propagation option for max pooling .
windowHeight
int
Height of the pooling window.
Height of the pooling window .
windowWidth
int
Width of the pooling window.
Width of the pooling window .
verticalPadding
int
Size of vertical padding.
Size of vertical padding .
horizontalPadding
int
Size of horizontal padding
Size of horizontal padding
verticalStride
int
Pooling vertical stride.
Pooling vertical stride .
horizontalStride
int
Pooling horizontal stride.
Pooling horizontal stride .