Dump Mode#
Overview#
Control graph dumping behavior More…
// enums enum dnnl_graph_dump_mode_t; enum dnnl::graph::graph_dump_mode; // global functions status dnnl::graph::set_dump_mode(graph_dump_mode modes); dnnl_status_t DNNL_API dnnl_graph_set_dump_mode(dnnl_graph_dump_mode_t modes);
Detailed Documentation#
Control graph dumping behavior
Global Functions#
status dnnl::graph::set_dump_mode(graph_dump_mode modes)
Configures graph dump modes at runtime.
Note
Enabling graph dump affects performance. This setting overrides the ONEDNN_GRAPH_DUMP environment variable.
Bitmask combinations using bitwise operators are supported. For instance, graph | subgraph enables both modes, none | graph behaves like graph, and none & graph behaves like none.
Parameters:
modes |
Bitmask composed of values from dnnl::graph::graph_dump_mode. Accepted values:
|
Returns:
dnnl::status::invalid_arguments if the modes value contains unsupported bits or graph dump is disabled, and dnnl::status::success on success.
dnnl_status_t DNNL_API dnnl_graph_set_dump_mode(dnnl_graph_dump_mode_t modes)
Configures graph dump modes at runtime.
Note
Enabling graph dump affects performance. This setting overrides the ONEDNN_GRAPH_DUMP environment variable.
Bitmask combinations using bitwise operators are supported. For instance, graph | subgraph enables both modes, none | graph behaves like graph, and none & graph behaves like none.
Parameters:
modes |
Bitmask composed of values from dnnl_graph_dump_mode_t. Accepted values:
|
Returns:
dnnl_invalid_arguments if the modes value contains unsupported bits or graph dump is disabled, and dnnl_success on success.