Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function queries the parameters of the previouly initialized Tensor4D descriptor object.
/// </summary>
/// <param name="tensorDesc">Handle to a previously insitialized tensor descriptor.</param>
/// <param name="dataType">Data type.</param>
/// <param name="n">Number of images.</param>
/// <param name="c">Number of feature maps per image.</param>
/// <param name="h">Height of each feature map.</param>
/// <param name="w">Width of each feature map.</param>
/// <param name="nStride">Stride between two consecutive images.</param>
/// <param name="cStride">Stride between two consecutive feature maps.</param>
/// <param name="hStride">Stride between two consecutive rows.</param>
/// <param name="wStride">Stride between two consecutive columns.</param>
This function queries the parameters of the previouly initialized Tensor4D descriptor object.
This function queries the parameters of the previouly initialized Tensor4D descriptor object .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnGetTensor4dDescriptor(   cudnnTensorDescriptor tensorDesc,
																ref cudnnDataType dataType, 
																ref int n,        
																ref int c,        
																ref int h,        
																ref int w,        
																ref int nStride,
																ref int cStride,
																ref int hStride,
																ref int wStride
															);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnGetTensor4dDescriptor ( cudnnTensorDescriptor tensorDesc , ref cudnnDataType dataType , ref int n , ref int c , ref int h , ref int w , ref int nStride , ref int cStride , ref int hStride , ref int wStride ) ;
This function queries the parameters of the previouly initialized Tensor4D descriptor object.
This function queries the parameters of the previouly initialized Tensor4D descriptor object .
// image data type // number of inputs (batch size) // number of input feature maps // height of input section // width of input section
tensorDesc
cudnnTensorDescriptor
Handle to a previously insitialized tensor descriptor.
Handle to a previously insitialized tensor descriptor .
cudnnDataType
ref
int
ref
dataType
None
n
Number of images.
Number of images .
c
Number of feature maps per image.
Number of feature maps per image .
h
Height of each feature map.
Height of each feature map .
w
Width of each feature map.
Width of each feature map .
nStride
Stride between two consecutive images.
Stride between two consecutive images .
cStride
Stride between two consecutive feature maps.
Stride between two consecutive feature maps .
hStride
Stride between two consecutive rows.
Stride between two consecutive rows .
wStride
Stride between two consecutive columns.
Stride between two consecutive columns .