Files
openvino/src/plugins/intel_cpu/tools/dump_check

CPU Dump Check Tool

Preparing

  1. Install dependencies:
pip3 install -r ./requirements.txt
  1. Build CPU plugin with -DENABLE_DEBUG_CAPS=ON and install it.

  2. Initialize OpenVINO enviroment:

# suppose CMAKE_INSTALL_PREFIX=~/openvino/build/install
source ~/openvino/build/install/setupvars.sh

Typical usage

  • dump each output tensors from CPU plugin:
python3 dump_check.py -m=/path/to/model dump1
  • comparing two dumps and analyze differences:
python3 dump_check.py -m=/path/to/model dump1 dump2
  • visualize first error map:
python3 dump_check.py -m=/path/to/model dump1 dump2 -v

more options can be learned from the help of this tool.