onnxruntime
7df97f19 - Add debugging helper to dump string, vector and thread id (#21224)

Commit
1 year ago
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. -->
Author
Parents
Loading