enum dnnl::memory::sparse_encoding

enum dnnl::memory::sparse_encoding#

Overview#

Sparse encodings. More…

#include <dnnl.hpp>

enum sparse_encoding
{
    undef  = dnnl_sparse_encoding_undef,
    csr    = dnnl_csr,
    packed = dnnl_packed,
    coo    = dnnl_coo,
};

Detailed Documentation#

Sparse encodings.

See also:

Sparse memory formats

Enum Values#

undef

Undefined sparse encoding kind, used for empty memory descriptors.

csr

Compressed Sparse Row (CSR) encoding.

packed

An encoding that is used for an opaque storage schema for tensors with unstructured sparsity.

A memory descriptor with the packed encoding cannot be used to create a memory object. It can only be used to create a primitive descriptor to query the actual memory descriptor (similar to the format tag any).

coo

Coordinate Sparse (COO) encoding.