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