C# 클래스 ManagedCuda.CudaDNN.TensorDescriptor

An opaque structure holding the description of a generic n-D dataset.
상속: IDisposable
파일 보기 프로젝트 열기: kunzmi/managedCuda 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Dispose

GetTensor4dDescriptor ( cudnnDataType &dataType, int &n, int &c, int &h, int &w, int &nStride, int &cStride, int &hStride, int &wStride ) : void

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

GetTensorNdDescriptor ( int nbDimsRequested, cudnnDataType &dataType, int &nbDims, int dimA, int strideA ) : void

This function retrieves values stored in a previously initialized Tensor descriptor object.

SetTensor4dDescriptor ( cudnnTensorFormat format, cudnnDataType dataType, int n, int c, int h, int w ) : void

This function initializes a previously created generic Tensor descriptor object into a 4D tensor. The strides of the four dimensions are inferred from the format parameter and set in such a way that the data is contiguous in memory with no padding between dimensions.

SetTensor4dDescriptorEx ( cudnnDataType dataType, int n, int c, int h, int w, int nStride, int cStride, int hStride, int wStride ) : void

This function initializes a previously created generic Tensor descriptor object into a 4D tensor, similarly to cudnnSetTensor4dDescriptor but with the strides explicitly passed as parameters. This can be used to lay out the 4D tensor in any order or simply to define gaps between dimensions.

SetTensorNdDescriptor ( cudnnDataType dataType, int nbDims, int dimA, int strideA ) : void

This function initializes a previously created generic Tensor descriptor object.

TensorDescriptor ( ) : System

보호된 메소드들

메소드 설명
Dispose ( bool fDisposing ) : void

For IDisposable

메소드 상세

Dispose() 공개 메소드

Dispose
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

For IDisposable
protected Dispose ( bool fDisposing ) : void
fDisposing bool
리턴 void

GetTensor4dDescriptor() 공개 메소드

This function queries the parameters of the previouly initialized Tensor4D descriptor object.
public GetTensor4dDescriptor ( cudnnDataType &dataType, int &n, int &c, int &h, int &w, int &nStride, int &cStride, int &hStride, int &wStride ) : void
dataType cudnnDataType Data type.
n int Number of images.
c int Number of feature maps per image.
h int Height of each feature map.
w int Width of each feature map.
nStride int Stride between two consecutive images.
cStride int Stride between two consecutive feature maps.
hStride int Stride between two consecutive rows.
wStride int Stride between two consecutive columns.
리턴 void

GetTensorNdDescriptor() 공개 메소드

This function retrieves values stored in a previously initialized Tensor descriptor object.
public GetTensorNdDescriptor ( int nbDimsRequested, cudnnDataType &dataType, int &nbDims, int dimA, int strideA ) : void
nbDimsRequested int Number of dimensions to extract from a given tensor descriptor. It is /// also the minimum size of the arrays dimA and strideA. If this number is /// greater than the resulting nbDims[0], only nbDims[0] dimensions will be /// returned.
dataType cudnnDataType Data type.
nbDims int Actual number of dimensions of the tensor will be returned in nbDims[0].
dimA int Array of dimension of at least nbDimsRequested that will be filled with /// the dimensions from the provided tensor descriptor.
strideA int Array of dimension of at least nbDimsRequested that will be filled with /// the strides from the provided tensor descriptor.
리턴 void

SetTensor4dDescriptor() 공개 메소드

This function initializes a previously created generic Tensor descriptor object into a 4D tensor. The strides of the four dimensions are inferred from the format parameter and set in such a way that the data is contiguous in memory with no padding between dimensions.
public SetTensor4dDescriptor ( cudnnTensorFormat format, cudnnDataType dataType, int n, int c, int h, int w ) : void
format cudnnTensorFormat Type of format.
dataType cudnnDataType Data type.
n int Number of images.
c int Number of feature maps per image.
h int Height of each feature map.
w int Width of each feature map.
리턴 void

SetTensor4dDescriptorEx() 공개 메소드

This function initializes a previously created generic Tensor descriptor object into a 4D tensor, similarly to cudnnSetTensor4dDescriptor but with the strides explicitly passed as parameters. This can be used to lay out the 4D tensor in any order or simply to define gaps between dimensions.
public SetTensor4dDescriptorEx ( cudnnDataType dataType, int n, int c, int h, int w, int nStride, int cStride, int hStride, int wStride ) : void
dataType cudnnDataType Data type.
n int Number of images.
c int Number of feature maps per image.
h int Height of each feature map.
w int Width of each feature map.
nStride int Stride between two consecutive images.
cStride int Stride between two consecutive feature maps.
hStride int Stride between two consecutive rows.
wStride int Stride between two consecutive columns.
리턴 void

SetTensorNdDescriptor() 공개 메소드

This function initializes a previously created generic Tensor descriptor object.
public SetTensorNdDescriptor ( cudnnDataType dataType, int nbDims, int dimA, int strideA ) : void
dataType cudnnDataType Data type.
nbDims int Dimension of the tensor.
dimA int Array of dimension nbDims that contain the size of the tensor for every dimension.
strideA int Array of dimension nbDims that contain the stride of the tensor for every dimension.
리턴 void

TensorDescriptor() 공개 메소드

public TensorDescriptor ( ) : System
리턴 System