Library/ManagedCuda/CudaDNN/PoolingDescriptor.cs
/// <summary>
/// This function initializes a previously created generic 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="nbDims">Dimension of the pooling operation.</param>
/// <param name="windowDimA">Array of dimension nbDims containing the window size for each dimension.</param>
/// <param name="paddingA">Array of dimension nbDims containing the padding size for each dimension.</param>
/// <param name="strideA">Array of dimension nbDims containing the striding size for each dimension.</param>
This function initializes a previously created generic pooling descriptor object.
This function initializes a previously created generic pooling descriptor object .
public void SetPoolingNdDescriptor(cudnnPoolingMode mode,
                                            cudnnNanPropagation maxpoolingNanOpt,
                                            int nbDims,
											int[] windowDimA,
											int[] paddingA,
											int[] strideA
										)
		{
			res = CudaDNNNativeMethods.cudnnSetPoolingNdDescriptor(_desc, mode, maxpoolingNanOpt, nbDims, windowDimA, paddingA, strideA);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetPoolingNdDescriptor", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void SetPoolingNdDescriptor ( cudnnPoolingMode mode , cudnnNanPropagation maxpoolingNanOpt , int nbDims , int [ ] windowDimA , int [ ] paddingA , int [ ] strideA ) { res = CudaDNNNativeMethods . cudnnSetPoolingNdDescriptor ( _desc , mode , maxpoolingNanOpt , nbDims , windowDimA , paddingA , strideA ) ; 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.
This function initializes a previously created generic pooling descriptor object .
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 .
nbDims
int
Dimension of the pooling operation.
Dimension of the pooling operation .
windowDimA
int[]
Array of dimension nbDims containing the window size for each dimension.
Array of dimension nbDims containing the window size for each dimension .
paddingA
int[]
Array of dimension nbDims containing the padding size for each dimension.
Array of dimension nbDims containing the padding size for each dimension .
strideA
int[]
Array of dimension nbDims containing the striding size for each dimension.
Array of dimension nbDims containing the striding size for each dimension .