ManagedCuda.CudaDNN.PoolingDescriptor.GetPoolingNdDescriptor C# (CSharp) Method

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
        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);
        }