Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function returns the dimensions of the resulting 4D tensor of a 2D convolution,
/// given the convolution descriptor, the input tensor descriptor and the filter descriptor
/// This function can help to setup the output tensor and allocate the proper amount of
/// memory prior to launch the actual convolution.<para/>
/// Each dimension h and w of the output images is computed as followed:<para/>
/// outputDim = 1 + (inputDim + 2*pad - filterDim)/convolutionStride;
/// </summary>
/// <param name="convDesc">Handle to a previously created convolution descriptor.</param>
/// <param name="inputTensorDesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="filterDesc">Handle to a previously initialized filter descriptor.</param>
/// <param name="n">Number of output images.</param>
/// <param name="c">Number of output feature maps per image.</param>
/// <param name="h">Height of each output feature map.</param>
/// <param name="w">Width of each output feature map.</param>
This function returns the dimensions of the resulting 4D tensor of a 2D convolution,
given the convolution descriptor, the input tensor descriptor and the filter descriptor
This function can help to setup the output tensor and allocate the proper amount of
memory prior to launch the actual convolution.
Each dimension h and w of the output images is computed as followed:
outputDim = 1 + (inputDim + 2*pad - filterDim)/convolutionStride.
This function returns the dimensions of the resulting 4D tensor of a 2D convolution given the convolution descriptor the input tensor descriptor and the filter descriptor This function can help to setup the output tensor and allocate the proper amount of memory prior to launch the actual convolution . Each dimension h and w of the output images is computed as followed : outputDim = 1 + ( inputDim + 2 * pad - filterDim ) / convolutionStride .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnGetConvolution2dForwardOutputDim( cudnnConvolutionDescriptor convDesc,
																		 cudnnTensorDescriptor     inputTensorDesc,
																		 cudnnFilterDescriptor     filterDesc,
																		 ref int n,
																		 ref int c,
																		 ref int h,
																		 ref int w
																		);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnGetConvolution2dForwardOutputDim ( cudnnConvolutionDescriptor convDesc , cudnnTensorDescriptor inputTensorDesc , cudnnFilterDescriptor filterDesc , ref int n , ref int c , ref int h , ref int w ) ;
This function returns the dimensions of the resulting 4D tensor of a 2D convolution,
given the convolution descriptor, the input tensor descriptor and the filter descriptor
This function can help to setup the output tensor and allocate the proper amount of
memory prior to launch the actual convolution.
This function returns the dimensions of the resulting 4D tensor of a 2D convolution given the convolution descriptor the input tensor descriptor and the filter descriptor This function can help to setup the output tensor and allocate the proper amount of memory prior to launch the actual convolution .
convDesc
cudnnConvolutionDescriptor
Handle to a previously created convolution descriptor.
Handle to a previously created convolution descriptor .
inputTensorDesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
filterDesc
cudnnFilterDescriptor
Handle to a previously initialized filter descriptor.
Handle to a previously initialized filter descriptor .
int
ref
n
Number of output images.
Number of output images .
c
Number of output feature maps per image.
Number of output feature maps per image .
h
Height of each output feature map.
Height of each output feature map .
w
Width of each output feature map.
Width of each output feature map .