Intel® oneAPI Deep Neural Network Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-22F436D1-84E3-4F3B-8113-541BDB4FFE94
Visible to Intel only — GUID: GUID-22F436D1-84E3-4F3B-8113-541BDB4FFE94
enum dnnl_graph_tensor_property_t
Overview
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
dnnl_graph_tensor_property_undef
Undefined tensor property.
dnnl_graph_tensor_property_variable
Variable means the tensor may be changed during computation or between different iterations.
dnnl_graph_tensor_property_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.