enum dnnl::memory::sparse_encoding


Sparse encodings. More…

#include <dnnl.hpp>

enum sparse_encoding
    undef  = dnnl_sparse_encoding_undef,
    csr    = dnnl_csr,
    packed = dnnl_packed,

Detailed Documentation

Sparse encodings.

Enum Values


Undefined sparse encoding kind, used for empty memory descriptors.


Compressed Sparse Row (CSR) encoding.


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).