[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:
37
src/plugins/intel_cpu/tools/dump_check/README.md
Normal file
37
src/plugins/intel_cpu/tools/dump_check/README.md
Normal 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.
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user