Class FilterDescriptor
An opaque structure holding the description of a filter dataset.
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda.CudaDNN
Assembly: CudaDNN.dll
Syntax
public class FilterDescriptor : IDisposable
Constructors
| Improve this Doc View SourceFilterDescriptor()
Declaration
public FilterDescriptor()
Properties
| Improve this Doc View SourceDesc
Returns the inner handle.
Declaration
public cudnnFilterDescriptor Desc { get; }
Property Value
Type | Description |
---|---|
cudnnFilterDescriptor |
Methods
| Improve this Doc View SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetFilter4dDescriptor(ref cudnnDataType, ref cudnnTensorFormat, ref Int32, ref Int32, ref Int32, ref Int32)
This function queries the parameters of the previouly initialized filter descriptor object.
Declaration
public void GetFilter4dDescriptor(ref cudnnDataType dataType, ref cudnnTensorFormat format, ref int k, ref int c, ref int h, ref int w)
Parameters
Type | Name | Description |
---|---|---|
cudnnDataType | dataType | Data type. |
cudnnTensorFormat | format | Enumerant holding the layout format. |
System.Int32 | k | Number of output feature maps. |
System.Int32 | c | Number of input feature maps. |
System.Int32 | h | Height of each filter. |
System.Int32 | w | Width of each filter. |
GetFilterNdDescriptor(Int32, ref cudnnDataType, ref cudnnTensorFormat, ref Int32, Int32[])
This function queries a previously initialized filter descriptor object.
Declaration
public void GetFilterNdDescriptor(int nbDimsRequested, ref cudnnDataType dataType, ref cudnnTensorFormat format, ref int nbDims, int[] filterDimA)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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 |
cudnnDataType | dataType | Data type. |
cudnnTensorFormat | format | Enumerant holding the layout format. |
System.Int32 | nbDims | Actual dimension of the filter. |
System.Int32[] | filterDimA | Array of dimension of at least nbDimsRequested that will be filled with the filter parameters from the provided filter descriptor. |
SetFilter4dDescriptor(cudnnDataType, cudnnTensorFormat, Int32, Int32, Int32, Int32)
This function initializes a previously created filter descriptor object into a 4D filter. Filters layout must be contiguous in memory.
Declaration
public void SetFilter4dDescriptor(cudnnDataType dataType, cudnnTensorFormat format, int k, int c, int h, int w)
Parameters
Type | Name | Description |
---|---|---|
cudnnDataType | dataType | Data type. |
cudnnTensorFormat | format | Enumerant holding the layout format. |
System.Int32 | k | Number of output feature maps. |
System.Int32 | c | Number of input feature maps. |
System.Int32 | h | Height of each filter. |
System.Int32 | w | Width of each filter. |
SetFilterNdDescriptor(cudnnDataType, cudnnTensorFormat, Int32, Int32[])
This function initializes a previously created filter descriptor object. Filters layout must be contiguous in memory.
Declaration
public void SetFilterNdDescriptor(cudnnDataType dataType, cudnnTensorFormat format, int nbDims, int[] filterDimA)
Parameters
Type | Name | Description |
---|---|---|
cudnnDataType | dataType | Data type. |
cudnnTensorFormat | format | Enumerant holding the layout format. |
System.Int32 | nbDims | Dimension of the filter. |
System.Int32[] | filterDimA | Array of dimension nbDims containing the size of the filter for each dimension. |