[CPU] Move cpu_dump_check into CPU plugin's tools folder (#12100)

* Move cpu_dump_check into CPU plugin's tools folder

* remove cpu from names

* Update README
This commit is contained in:
Tingqian Li
2022-07-13 13:39:08 +08:00
committed by GitHub
parent d032fd3abd
commit 52434b7ea0
4 changed files with 37 additions and 20 deletions

View File

@@ -0,0 +1,37 @@
# CPU Dump Check Tool
# Preparing
1. Install dependencies:
```bash
pip3 install -r ./requirements.txt
```
2. Build CPU plugin with `-DENABLE_DEBUG_CAPS=ON` and install it.
3. Initialize OpenVINO enviroment:
```bash
# suppose CMAKE_INSTALL_PREFIX=~/openvino/build/install
source ~/openvino/build/install/setupvars.sh
```
# Typical usage
- dump each output tensors from CPU plugin:
```bash
python3 dump_check.py -m=/path/to/model dump1
```
- comparing two dumps and analyze differences:
```bash
python3 dump_check.py -m=/path/to/model dump1 dump2
```
- visualize first error map:
```bash
python3 dump_check.py -m=/path/to/model dump1 dump2 -v
```
more options can be learned from the help of this tool.

View File

@@ -1,20 +0,0 @@
# CPU Dump Check Tool
Compile CPU plugin with `-DENABLE_DEBUG_CAPS=ON`, then this tool allows:
- dump each output tensors from CPU plugin:
```bash
python3 cpu_dump_check.py -m=/path/to/model dump1
```
- comparing two dumps and analyze differences:
```bash
python3 cpu_dump_check.py -m=/path/to/model dump1 dump2
```
- visualize first error map:
```bash
python3 cpu_dump_check.py -m=/path/to/model dump1 dump2 -v
```