cudnnGetConvolution2dDescriptor() private method

private cudnnGetConvolution2dDescriptor ( cudnnConvolutionDescriptor convDesc, int &pad_h, int &pad_w, int &u, int &v, int &upscalex, int &upscaley, cudnnConvolutionMode &mode, cudnnDataType &dataType ) : cudnnStatus
convDesc cudnnConvolutionDescriptor
pad_h int
pad_w int
u int
v int
upscalex int
upscaley int
mode cudnnConvolutionMode
dataType cudnnDataType
return cudnnStatus
 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
                                        )
 {
     res = CudaDNNNativeMethods.cudnnGetConvolution2dDescriptor(_desc, ref pad_h, ref pad_w, ref u, ref v, ref upscalex, ref upscaley, ref mode);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetConvolution2dDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }
Beispiel #2
0
 /// <summary>
 /// This function queries a previously initialized 2D convolution descriptor object.
 /// </summary>
 /// <param name="pad_h">zero-padding height: number of rows of zeros implicitly concatenated
 /// onto the top and onto the bottom of input images.</param>
 /// <param name="pad_w">zero-padding width: number of columns of zeros implicitly concatenated
 /// onto the left and onto the right of input images.</param>
 /// <param name="u">Vertical filter stride.</param>
 /// <param name="v">Horizontal filter stride.</param>
 /// <param name="dilation_h">Filter height dilation.</param>
 /// <param name="dilation_w">Filter width dilation.</param>
 /// <param name="mode">convolution mode.</param>
 /// <param name="dataType">Selects the datatype in which the computation will be done.</param>
 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 dilation_h, // filter dilation in the vertical dimension
                                        ref int dilation_w, // filter dilation in the horizontal dimension
                                        ref cudnnConvolutionMode mode,
                                        ref cudnnDataType dataType
                                        )
 {
     res = CudaDNNNativeMethods.cudnnGetConvolution2dDescriptor(_desc, ref pad_h, ref pad_w, ref u, ref v, ref dilation_h, ref dilation_w, ref mode, ref dataType);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetConvolution2dDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }