enum dnnl::graph::logical_tensor::layout_type

Overview

Layout type. More…

#include <dnnl_graph.hpp>

enum layout_type
{
    undef   = dnnl_graph_layout_type_undef,
    any     = dnnl_graph_layout_type_any,
    strided = dnnl_graph_layout_type_strided,
    opaque  = dnnl_graph_layout_type_opaque,
};

Detailed Documentation

Layout type.

Enum Values

undef

Undefined layout type.

any

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

strided

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

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.