Library/ManagedCuda/CudaDNN/FilterDescriptor.cs
/// <summary>
/// This function initializes a previously created filter descriptor object. Filters layout must
/// be contiguous in memory.
/// </summary>
/// <param name="dataType">Data type.</param>
/// <param name="format">Enumerant holding the 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.
This function initializes a previously created filter descriptor object . Filters layout must be contiguous in memory .
public void SetFilterNdDescriptor(cudnnDataType dataType, 
                                            cudnnTensorFormat format,
											int nbDims,
											int[] filterDimA
											)
		{
			res = CudaDNNNativeMethods.cudnnSetFilterNdDescriptor(_desc, dataType, format, nbDims, filterDimA);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetFilterNdDescriptor", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void SetFilterNdDescriptor ( cudnnDataType dataType , cudnnTensorFormat format , int nbDims , int [ ] filterDimA ) { res = CudaDNNNativeMethods . cudnnSetFilterNdDescriptor ( _desc , dataType , format , nbDims , filterDimA ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function initializes a previously created filter descriptor object.
This function initializes a previously created filter descriptor object .
// image data type
dataType
cudnnDataType
None
format
cudnnTensorFormat
Enumerant holding the layout format.
Enumerant holding the layout format .
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 .