enum dnnl_graph_layout_type_t

Overview

Layout type specification. More…

#include <dnnl_graph_types.h>

enum dnnl_graph_layout_type_t
{
    dnnl_graph_layout_type_undef   = 0,
    dnnl_graph_layout_type_any     = 1,
    dnnl_graph_layout_type_strided = 2,
    dnnl_graph_layout_type_opaque  = 3,
};

Detailed Documentation

Layout type specification.

Enum Values

dnnl_graph_layout_type_undef

Undefined layout type.

dnnl_graph_layout_type_any

Any means to let the library to decide the layout for a tensor during partition compilation.

dnnl_graph_layout_type_strided

Strided means that the layout of a tensor is determined by the strides field in the logical tensor.

dnnl_graph_layout_type_opaque

Opaque means that the layout of a tensor is the library specific.

Usually, an opaque layout is generated by a partition which is compiled with layout type any.