Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created filter descriptor object. 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="nbDims">Dimension of the filter.</param>
/// <param name="filterDimA">Array of dimension nbDims containing the size of the filter for each dimension.</param>
This function initializes a previously created filter descriptor object. 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 . 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 cudnnSetFilterNdDescriptor(cudnnFilterDescriptor filterDesc,
                                                               cudnnDataType dataType, 
                                                               cudnnTensorFormat format, 
                                                               int nbDims,
                                                               int[] filterDimA
                                                             );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetFilterNdDescriptor ( cudnnFilterDescriptor filterDesc , cudnnDataType dataType , cudnnTensorFormat format , int nbDims , int [ ] filterDimA ) ;
This function initializes a previously created filter descriptor object.
This function initializes a previously created filter descriptor object .
// image data type // layout format
filterDesc
cudnnFilterDescriptor
Handle to a previously created filter descriptor.
Handle to a previously created filter descriptor .
dataType
cudnnDataType
None
format
cudnnTensorFormat
None
nbDims
int
Dimension of the filter.
Dimension of the filter .
filterDimA
int[]
Array of dimension nbDims containing the size of the filter for each dimension.
Array of dimension nbDims containing the size of the filter for each dimension .