Library/ManagedCuda/CudaDNN/PoolingDescriptor.cs
/// <summary>
/// This function queries a previously initialized generic pooling descriptor object.
/// </summary>
/// <param name="nbDimsRequested">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</param>
/// <param name="mode">Enumerant to specify the pooling mode.</param>
/// <param name="maxpoolingNanOpt">Nan propagation option for max pooling.</param>
/// <param name="nbDims">Actual dimension of the pooling descriptor.</param>
/// <param name="windowDimA">Array of dimension of at least nbDimsRequested that will be filled with
/// the window parameters from the provided pooling descriptor.</param>
/// <param name="paddingA">Array of dimension of at least nbDimsRequested that will be filled with
/// the padding parameters from the provided pooling descriptor.</param>
/// <param name="strideA">Array of dimension at least nbDimsRequested that will be filled with
/// the stride parameters from the provided pooling descriptor.</param>
This function queries a previously initialized generic pooling descriptor object.
This function queries a previously initialized generic pooling descriptor object .
public void GetPoolingNdDescriptor(int nbDimsRequested,
											ref cudnnPoolingMode mode,
                                            ref cudnnNanPropagation maxpoolingNanOpt,
                                            ref int nbDims,
											int[] windowDimA,
											int[] paddingA,
											int[] strideA
											)
		{
			res = CudaDNNNativeMethods.cudnnGetPoolingNdDescriptor(_desc, nbDimsRequested, ref mode, ref maxpoolingNanOpt, ref nbDims, windowDimA, paddingA, strideA);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetPoolingNdDescriptor", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void GetPoolingNdDescriptor ( int nbDimsRequested , ref cudnnPoolingMode mode , ref cudnnNanPropagation maxpoolingNanOpt , ref int nbDims , int [ ] windowDimA , int [ ] paddingA , int [ ] strideA ) { res = CudaDNNNativeMethods . cudnnGetPoolingNdDescriptor ( _desc , nbDimsRequested , ref mode , ref maxpoolingNanOpt , ref nbDims , windowDimA , paddingA , strideA ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function queries a previously initialized generic pooling descriptor object.
This function queries a previously initialized generic pooling descriptor object .
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
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
cudnnPoolingMode
ref
cudnnNanPropagation
ref
int
ref
windowDimA
int[]
Array of dimension of at least nbDimsRequested that will be filled with
the window parameters from the provided pooling descriptor.
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.
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.
Array of dimension at least nbDimsRequested that will be filled with the stride parameters from the provided pooling descriptor .
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 .
nbDims
Actual dimension of the pooling descriptor.
Actual dimension of the pooling descriptor .