Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created generic Tensor descriptor object into a
/// 4D tensor. The strides of the four dimensions are inferred from the format parameter
/// and set in such a way that the data is contiguous in memory with no padding between
/// dimensions.
/// </summary>
/// <param name="tensorDesc">Handle to a previously created tensor descriptor.</param>
/// <param name="format">Type of format.</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>
This function initializes a previously created generic Tensor descriptor object into a
4D tensor. The strides of the four dimensions are inferred from the format parameter
and set in such a way that the data is contiguous in memory with no padding between
dimensions.
This function initializes a previously created generic Tensor descriptor object into a 4D tensor . The strides of the four dimensions are inferred from the format parameter and set in such a way that the data is contiguous in memory with no padding between dimensions .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnSetTensor4dDescriptor(cudnnTensorDescriptor tensorDesc,
																cudnnTensorFormat  format,
																cudnnDataType dataType, 
																int n,        
																int c,        
																int h,        
																int w         
															);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetTensor4dDescriptor ( cudnnTensorDescriptor tensorDesc , cudnnTensorFormat format , cudnnDataType dataType , int n , int c , int h , int w ) ;
This function initializes a previously created generic Tensor descriptor object into a
4D tensor.
This function initializes a previously created generic Tensor descriptor object into a 4D tensor .
// 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 created tensor descriptor.
Handle to a previously created tensor descriptor .
format
cudnnTensorFormat
Type of format.
Type of format .
dataType
cudnnDataType
None
n
int
Number of images.
Number of images .
c
int
Number of feature maps per image.
Number of feature maps per image .
h
int
Height of each feature map.
Height of each feature map .
w
int
Width of each feature map.
Width of each feature map .