Enum cudnnTensorFormat
cudnnTensorFormat is an enumerated type used by cudnnSetTensor4dDescriptor() to create a tensor with a pre-defined layout.
Namespace: ManagedCuda.CudaDNN
Assembly: CudaDNN.dll
Syntax
public enum cudnnTensorFormat
Fields
Name | Description |
---|---|
NCHW | This tensor format specifies that the data is laid out in the following order: image, features map, rows, columns. The strides are implicitly defined in such a way that the data are contiguous in memory with no padding between images, feature maps, rows, and columns; the columns are the inner dimension and the images are the outermost dimension. |
NCHW_VECT_C | This tensor format specifies that the data is laid out in the following order: batch size, feature maps, rows, columns. However, each element of the tensor is a vector of multiple feature maps. The length of the vector is carried by the data type of the tensor. The strides are implicitly defined in such a way that the data are contiguous in memory with no padding between images, feature maps, rows, and columns; the columns are the inner dimension and the images are the outermost dimension. This format is only supported with tensor data type CUDNN_DATA_INT8x4. |
NHWC | This tensor format specifies that the data is laid out in the following order: image, rows, columns, features maps. The strides are implicitly defined in such a way that the data are contiguous in memory with no padding between images, rows, columns, and features maps; the feature maps are the inner dimension and the images are the outermost dimension. |