-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging of the matching process (#28587)
Improve logging of the matching process to make more human-friendly Logging before:  Several examples of the improved logging: 1.  2.  3.  4.  Signed-off-by: Andrii Staikov <andrii.staikov@intel.com> Ticket: * [CVS-151312](https://jira.devtools.intel.com/browse/CVS-151312) --------- Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com> Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
- Loading branch information
1 parent
f77ef0f
commit dfa6790
Showing
21 changed files
with
1,087 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Transformations documentation | ||
|
||
## Debug capabilities | ||
|
||
* [Matcher logging README](./debug_capabilities/LOGGING_README.md) | ||
|
||
## Key Contacts | ||
|
||
For assistance regarding snippets, contact a member of [openvino-ie-transformations-maintainers](https://github.com/orgs/openvinotoolkit/teams/openvino-ie-transformations-maintainers) group. | ||
|
||
## See also | ||
|
||
* [OpenVINO™ README](../../../README.md) | ||
* [OpenVINO Core Components](../../README.md) | ||
* [Developer documentation](../../../docs/dev/index.md) |
22 changes: 22 additions & 0 deletions
22
src/common/transformations/docs/debug_capabilities/matcher_logging.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Logging of the pattern matching | ||
|
||
The logging functionality allows to observe/debug the pattern matching process. | ||
|
||
## Usage | ||
In order to utilzie the logging, first, you need to set the CMake flag ```-DENABLE_OPENVINO_DEBUG=ON``` | ||
|
||
_NOTE: the logging would also work if your build is configured as Release_ | ||
|
||
In order to start logging, set the environmental variable ```OV_MATCHER_LOGGING``` to ``true/ON`` before running your executable or script as following: | ||
```OV_MATCHER_LOGGING=true ./your_amazing_program``` | ||
|
||
If you want to log only specific matchers, use the ```OV_MATCHERS_TO_LOG``` environmental variable and provide their names separated as commas: | ||
```OV_MATCHER_LOGGING=true OV_MATCHERS_TO_LOG=EliminateSplitConcat,MarkDequantization ./your_amazing_program``` | ||
|
||
You can also set the environmental variable ```OV_VERBOSE_LOGGING``` to ```true```, to turn on more verbose logging that would print more information about the nodes taking part in the matching process: | ||
```OV_MATCHER_LOGGING=true OV_VERBOSE_LOGGING=true ./your_amazing_program``` | ||
|
||
## Useful feature: | ||
If you redirect the logging output into a .json file (extension is important for the correct processing of the file in Visual Studio Code). This allows collapsing blocks in Visual Studio Code as you would do with a normal .json file. | ||
|
||
If you have any suggestions for improvement or you observe a bug in logging, feel free to submit changes or contact Andrii Staikov <andrii.staikov@intel.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.