enum dnnl::graph::logical_tensor::property_type¶
Overview¶
Tensor property. More…
#include <dnnl_graph.hpp> enum property_type { undef = dnnl_graph_tensor_property_undef, variable = dnnl_graph_tensor_property_variable, constant = dnnl_graph_tensor_property_constant, };
Detailed Documentation¶
Tensor property.
Enum Values¶
undef
Undefined tensor property.
variable
Variable means the tensor may be changed during computation or between different iterations.
constant
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.