Library/ManagedCuda/CudaDNN/ConvolutionDescriptor.cs
/// <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>
This function queries a previously initialized 2D convolution descriptor object.
This function queries a previously initialized 2D convolution descriptor object .
public void GetConvolution2dDescriptor(ref int pad_h,    
												ref int pad_w,    
												ref int u,        
												ref int v,        
                                                ref int dilation_h, 
                                                ref int dilation_w, 
                                                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);
		}
public void GetConvolution2dDescriptor ( ref int pad_h , ref int pad_w , ref int u , ref int v , ref int dilation_h , ref int dilation_w , 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 ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function queries a previously initialized 2D convolution descriptor object.
This function queries a previously initialized 2D convolution descriptor object .
// zero-padding height // zero-padding width // vertical filter stride // horizontal filter stride // filter dilation in the vertical dimension // filter dilation in the horizontal dimension
int
ref
cudnnConvolutionMode
ref
cudnnDataType
ref
pad_h
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
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
Vertical filter stride.
Vertical filter stride .
v
Horizontal filter stride.
Horizontal filter stride .
dilation_h
Filter height dilation.
Filter height dilation .
dilation_w
Filter width dilation.
Filter width dilation .
mode
None
dataType
Selects the datatype in which the computation will be done.
Selects the datatype in which the computation will be done .