ManagedCuda.CudaDNN.ConvolutionDescriptor.GetConvolution2dDescriptor C# (CSharp) Method

GetConvolution2dDescriptor() public method

This function queries a previously initialized 2D convolution descriptor object.
public GetConvolution2dDescriptor ( int &pad_h, int &pad_w, int &u, int &v, int &upscalex, int &upscaley, cudnnConvolutionMode &mode, cudnnDataType &dataType ) : void
pad_h int zero-padding height: number of rows of zeros implicitly concatenated /// onto the top and onto the bottom of input images.
pad_w int zero-padding width: number of columns of zeros implicitly concatenated /// onto the left and onto the right of input images.
u int Vertical filter stride.
v int Horizontal filter stride.
upscalex int Upscale the input in x-direction.
upscaley int Upscale the input in y-direction.
mode cudnnConvolutionMode convolution mode.
dataType cudnnDataType Selects the datatype in which the computation will be done.
return void
        public void GetConvolution2dDescriptor(ref int pad_h,    // zero-padding height
												ref int pad_w,    // zero-padding width
												ref int u,        // vertical filter stride
												ref int v,        // horizontal filter stride
												ref int upscalex, // upscale the input in x-direction
												ref int upscaley, // upscale the input in y-direction
												ref cudnnConvolutionMode mode,
                                                ref cudnnDataType dataType
                                            )
        {
            res = CudaDNNNativeMethods.cudnnGetConvolution2dDescriptor(_desc, ref pad_h, ref pad_w, ref u, ref v, ref upscalex, ref upscaley, ref mode, ref dataType);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetConvolution2dDescriptor", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }