Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created convolution descriptor object into a 2D
/// correlation. This function assumes that the tensor and filter descriptors corresponds
/// to the forward convolution path and checks if their settings are valid. That same
/// convolution descriptor can be reused in the backward path provided it corresponds to
/// the same layer.
/// </summary>
/// <param name="convDesc">Handle to a previously created convolution descriptor.</param>
/// <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">Selects between CUDNN_CONVOLUTION and CUDNN_CROSS_CORRELATION.</param>
/// <param name="dataType">Selects the datatype in which the computation will be done.</param>
This function initializes a previously created convolution descriptor object into a 2D
correlation. This function assumes that the tensor and filter descriptors corresponds
to the forward convolution path and checks if their settings are valid. That same
convolution descriptor can be reused in the backward path provided it corresponds to
the same layer.
This function initializes a previously created convolution descriptor object into a 2D correlation . This function assumes that the tensor and filter descriptors corresponds to the forward convolution path and checks if their settings are valid . That same convolution descriptor can be reused in the backward path provided it corresponds to the same layer .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnSetConvolution2dDescriptor(  cudnnConvolutionDescriptor convDesc,
																	int pad_h,    
																	int pad_w,    
																	int u,        
																	int v,        
																	int dilation_h, 
                                                                    int dilation_w, 
                                                                    cudnnConvolutionMode mode,
                                                                    cudnnDataType dataType
                                                                 );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetConvolution2dDescriptor ( cudnnConvolutionDescriptor convDesc , int pad_h , int pad_w , int u , int v , int dilation_h , int dilation_w , cudnnConvolutionMode mode , cudnnDataType dataType ) ;
This function initializes a previously created convolution descriptor object into a 2D
correlation.
This function initializes a previously created convolution descriptor object into a 2D correlation .
// zero-padding height // zero-padding width // vertical filter stride // horizontal filter stride // filter dilation in the vertical dimension // filter dilation in the horizontal dimension
convDesc
cudnnConvolutionDescriptor
Handle to a previously created convolution descriptor.
Handle to a previously created convolution descriptor .
pad_h
int
zero-padding height: number of rows of zeros implicitly concatenated
onto the top and onto the bottom of input images.
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.
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.
Vertical filter stride .
v
int
Horizontal filter stride.
Horizontal filter stride .
dilation_h
int
Filter height dilation.
Filter height dilation .
dilation_w
int
Filter width dilation.
Filter width dilation .
mode
cudnnConvolutionMode
Selects between CUDNN_CONVOLUTION and CUDNN_CROSS_CORRELATION.
Selects between CUDNN_CONVOLUTION and CUDNN_CROSS_CORRELATION .
dataType
cudnnDataType
Selects the datatype in which the computation will be done.
Selects the datatype in which the computation will be done .