C# Class ManagedCuda.CudaDNN.FilterDescriptor

An opaque structure holding the description of a filter dataset.
Inheritance: IDisposable
Exibir arquivo Open project: kunzmi/managedCuda Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose

FilterDescriptor ( ) : System

GetFilter4dDescriptor ( cudnnDataType &dataType, cudnnTensorFormat &format, int &k, int &c, int &h, int &w ) : void

This function queries the parameters of the previouly initialized filter descriptor object.

GetFilterNdDescriptor ( int nbDimsRequested, cudnnDataType &dataType, cudnnTensorFormat &format, int &nbDims, int filterDimA ) : void

This function queries a previously initialized filter descriptor object.

SetFilter4dDescriptor ( cudnnDataType dataType, cudnnTensorFormat format, int k, int c, int h, int w ) : void

This function initializes a previously created filter descriptor object into a 4D filter. Filters layout must be contiguous in memory.

SetFilterNdDescriptor ( cudnnDataType dataType, cudnnTensorFormat format, int nbDims, int filterDimA ) : void

This function initializes a previously created filter descriptor object. Filters layout must be contiguous in memory.

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void

For IDisposable

Method Details

Dispose() public method

Dispose
public Dispose ( ) : void
return void

Dispose() protected method

For IDisposable
protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

FilterDescriptor() public method

public FilterDescriptor ( ) : System
return System

GetFilter4dDescriptor() public method

This function queries the parameters of the previouly initialized filter descriptor object.
public GetFilter4dDescriptor ( cudnnDataType &dataType, cudnnTensorFormat &format, int &k, int &c, int &h, int &w ) : void
dataType cudnnDataType Data type.
format cudnnTensorFormat Enumerant holding the layout format.
k int Number of output feature maps.
c int Number of input feature maps.
h int Height of each filter.
w int Width of each filter.
return void

GetFilterNdDescriptor() public method

This function queries a previously initialized filter descriptor object.
public GetFilterNdDescriptor ( int nbDimsRequested, cudnnDataType &dataType, cudnnTensorFormat &format, int &nbDims, int filterDimA ) : void
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
dataType cudnnDataType Data type.
format cudnnTensorFormat Enumerant holding the layout format.
nbDims int Actual dimension of the filter.
filterDimA int Array of dimension of at least nbDimsRequested that will be filled with /// the filter parameters from the provided filter descriptor.
return void

SetFilter4dDescriptor() public method

This function initializes a previously created filter descriptor object into a 4D filter. Filters layout must be contiguous in memory.
public SetFilter4dDescriptor ( cudnnDataType dataType, cudnnTensorFormat format, int k, int c, int h, int w ) : void
dataType cudnnDataType Data type.
format cudnnTensorFormat Enumerant holding the layout format.
k int Number of output feature maps.
c int Number of input feature maps.
h int Height of each filter.
w int Width of each filter.
return void

SetFilterNdDescriptor() public method

This function initializes a previously created filter descriptor object. Filters layout must be contiguous in memory.
public SetFilterNdDescriptor ( cudnnDataType dataType, cudnnTensorFormat format, int nbDims, int filterDimA ) : void
dataType cudnnDataType Data type.
format cudnnTensorFormat Enumerant holding the layout format.
nbDims int Dimension of the filter.
filterDimA int Array of dimension nbDims containing the size of the filter for each dimension.
return void