enum dnnl_graph_tensor_property_t


Logical tensor property. More…

#include <dnnl_graph_types.h>

enum dnnl_graph_tensor_property_t
    dnnl_graph_tensor_property_undef    = 0,
    dnnl_graph_tensor_property_variable = 1,
    dnnl_graph_tensor_property_constant = 2,

Detailed Documentation

Logical tensor property.

Enum Values


Undefined tensor property.


Variable means the tensor may be changed during computation or between different iterations.


Constant means the tensor will keep unchanged during computation and between different iterations.

It’s useful for the library to apply optimizations for constant tensors or cache constant tensors inside the library. For example, constant weight tensors in inference scenarios.