onnxruntime/onnxruntime
Tianlei Wu 7df97f1987
Add debugging helper to dump string, vector and thread id (#21224)
### Description

Add some macro to help print data to console for debugging purpose.

Example usage:
```
int input_id;
vector<int> some_vector;

DUMP_CPU_TENSOR_INIT()
DUMP_CPU_TENSOR("some vector", some_vector);
DUMP_STRING("input_id=", input_id);
```

- To enable dump thread id, set environment variable
`ORT_DUMP_THREAD_ID=0`.
- User can disable dumping by environment variable
`ORT_ENABLE_CPU_DUMP=0`.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2024-07-02 11:24:04 -07:00
..
contrib_ops Add debugging helper to dump string, vector and thread id (#21224) 2024-07-02 11:24:04 -07:00
core [TensorRT EP] Update TRT10.0 deprecated api (#20989) 2024-07-01 22:55:20 -07:00
python OVEP options to disable CPU fallback at compile time (#21166) 2024-06-28 08:31:02 -07:00
test Initial PR for VSINPU execution provider (#20903) 2024-06-28 21:48:34 -07:00
tool/etw
wasm [js/web] optimize module export and deployment (#20165) 2024-05-20 09:51:16 -07:00
__init__.py Bump up version in main from 1.18.0 to 1.19.0 (#20489) 2024-04-29 20:21:41 -07:00
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings