Library/ManagedCuda/CudaDNN/FilterDescriptor.cs
/// <summary>
/// This function queries a previously initialized filter descriptor object.
/// </summary>
/// <param name="nbDimsRequested">Dimension of the expected filter descriptor. It is also the minimum size of
/// the arrays filterDimA in order to be able to hold the results</param>
/// <param name="dataType">Data type.</param>
/// <param name="format">Enumerant holding the layout format.</param>
/// <param name="nbDims">Actual dimension of the filter.</param>
/// <param name="filterDimA">Array of dimension of at least nbDimsRequested that will be filled with
/// the filter parameters from the provided filter descriptor.</param>
This function queries a previously initialized filter descriptor object.
This function queries a previously initialized filter descriptor object .
public void GetFilterNdDescriptor(int nbDimsRequested,
											ref cudnnDataType dataType, 
                                            ref cudnnTensorFormat format,
											ref int nbDims,
											int[] filterDimA
										)
		{
			res = CudaDNNNativeMethods.cudnnGetFilterNdDescriptor(_desc, nbDimsRequested, ref dataType, ref format, ref nbDims, filterDimA);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetFilterNdDescriptor", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void GetFilterNdDescriptor ( int nbDimsRequested , ref cudnnDataType dataType , ref cudnnTensorFormat format , ref int nbDims , int [ ] filterDimA ) { res = CudaDNNNativeMethods . cudnnGetFilterNdDescriptor ( _desc , nbDimsRequested , ref dataType , ref format , ref nbDims , filterDimA ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function queries a previously initialized filter descriptor object.
This function queries a previously initialized filter descriptor object .
// image data type
nbDimsRequested
int
Dimension of the expected filter descriptor. It is also the minimum size of
the arrays filterDimA in order to be able to hold the results
Dimension of the expected filter descriptor . It is also the minimum size of the arrays filterDimA in order to be able to hold the results
cudnnDataType
ref
<not_specific>
cudnnTensorFormat
ref
<not_specific>
int
ref
<not_specific>
filterDimA
int[]
Array of dimension of at least nbDimsRequested that will be filled with
the filter parameters from the provided filter descriptor.
Array of dimension of at least nbDimsRequested that will be filled with the filter parameters from the provided filter descriptor .
dataType
<not_specific>
None
format
<not_specific>
Enumerant holding the layout format.
Enumerant holding the layout format .
nbDims
<not_specific>
Actual dimension of the filter.
Actual dimension of the filter .