Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created filter descriptor object into a 4D filter.
/// Filters layout must be contiguous in memory.
/// v4 version of the function also has the format parameter.
/// </summary>
/// <param name="filterDesc">Handle to a previously created filter descriptor.</param>
/// <param name="dataType">Data type.</param>
/// <param name="format">Layout format.</param>
/// <param name="k">Number of output feature maps.</param>
/// <param name="c">Number of input feature maps.</param>
/// <param name="h">Height of each filter.</param>
/// <param name="w">Width of each filter.</param>
This function initializes a previously created filter descriptor object into a 4D filter.
Filters layout must be contiguous in memory.
v4 version of the function also has the format parameter.
This function initializes a previously created filter descriptor object into a 4D filter . Filters layout must be contiguous in memory . v4 version of the function also has the format parameter .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnSetFilter4dDescriptor(cudnnFilterDescriptor filterDesc,
                                                               cudnnDataType dataType, 
                                                               cudnnTensorFormat format, 
                                                               int k,        
                                                               int c,        
                                                               int h,        
                                                               int w         
                                                          );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetFilter4dDescriptor ( cudnnFilterDescriptor filterDesc , cudnnDataType dataType , cudnnTensorFormat format , int k , int c , int h , int w ) ;
This function initializes a previously created filter descriptor object into a 4D filter.
This function initializes a previously created filter descriptor object into a 4D filter .
// image data type // layout format // number of output feature maps // number of input feature maps // height of each input filter // width of  each input fitler
filterDesc
cudnnFilterDescriptor
Handle to a previously created filter descriptor.
Handle to a previously created filter descriptor .
dataType
cudnnDataType
None
format
cudnnTensorFormat
None
k
int
Number of output feature maps.
Number of output feature maps .
c
int
Number of input feature maps.
Number of input feature maps .
h
int
Height of each filter.
Height of each filter .
w
int
Width of each filter.
Width of each filter .