Blob dumping is controlled by environment variables (filters).
The variables define conditions of the node which input and output blobs should be dumped for.
NOTE: Nothing is dumped by default
NOTE: All specified filters should be matched in order blobs to be dumped
Environment variables can be set per execution, for example:
OV_CPU_BLOB_DUMP_DIR=dump_dir OV_CPU_BLOB_DUMP_FORMAT=TEXT OV_CPU_BLOB_DUMP_NODE_PORTS=OUT binary ...or for shell session (bash example):
export OV_CPU_BLOB_DUMP_DIR=dump_dir
export OV_CPU_BLOB_DUMP_FORMAT=TEXT
export OV_CPU_BLOB_DUMP_NODE_PORTS=OUT
binary ... OV_CPU_BLOB_DUMP_DIR=<directory-name> binary ...Default is cpu_dump
OV_CPU_BLOB_DUMP_FORMAT=<format> binary ...Options are:
- BIN
- TEXT (default)
To dump only input / output blobs:
OV_CPU_BLOB_DUMP_NODE_PORTS='<ports_kind>' binary ...Example:
OV_CPU_BLOB_DUMP_NODE_PORTS=OUT binary ...Options are:
- IN
- OUT
- ALL
To dump blobs only for nodes with specified execution IDs:
OV_CPU_BLOB_DUMP_NODE_EXEC_ID='<space_separated_list_of_ids>' binary ...Example:
OV_CPU_BLOB_DUMP_NODE_EXEC_ID='1 12 45' binary ...To dump blobs only for nodes with specified types:
OV_CPU_BLOB_DUMP_NODE_TYPE=<space_separated_list_of_types> binary ...Example:
OV_CPU_BLOB_DUMP_NODE_TYPE='Convolution Reorder' binary ...NOTE: see enum Type in node.h for list of the types
To dump blobs only for nodes with name matching specified regex:
OV_CPU_BLOB_DUMP_NODE_NAME=<regex> binary ...Example:
OV_CPU_BLOB_DUMP_NODE_NAME=".+Fused_Add.+" binary ... OV_CPU_BLOB_DUMP_NODE_NAME="*" binary ...or
OV_CPU_BLOB_DUMP_NODE_NAME=".+" binary ...or
OV_CPU_BLOB_DUMP_NODE_PORTS=ALL binary ...